C# Class HitProxy.Connection.StreamExtensions

Show file Open project: hultqvist/HitProxy

Public Methods

Method Description
PipeTo ( this source, Stream output ) : int

Send all data from incoming socket to output. Buffer is assumed to be empty.

PipeTo ( this source, Stream output, long length ) : void

Send length bytes of data from incoming socket to output. Buffer is assumed to be empty.

Method Details

PipeTo() public static method

Send all data from incoming socket to output. Buffer is assumed to be empty.
public static PipeTo ( this source, Stream output ) : int
source this
output Stream
return int

PipeTo() public static method

Send length bytes of data from incoming socket to output. Buffer is assumed to be empty.
public static PipeTo ( this source, Stream output, long length ) : void
source this
output Stream
length long
return void