Class FullDuplexStream
Provides a full duplex stream which may be shared by two parties to exchange messages.
public static class FullDuplexStream
- Inheritance
-
FullDuplexStream
- Inherited Members
Methods
CreatePair(PipeOptions?)
Creates a pair of streams that can be passed to two parties to allow for interaction with each other.
public static (Stream, Stream) CreatePair(PipeOptions? pipeOptions = null)
Parameters
pipeOptions
PipeOptionsPipe options to initialize the internal pipes with.
Returns
CreatePipePair(PipeOptions?)
Creates a pair of duplex pipes that can be passed to two parties to allow for interaction with each other.
public static (IDuplexPipe, IDuplexPipe) CreatePipePair(PipeOptions? pipeOptions = null)
Parameters
pipeOptions
PipeOptionsPipe options to initialize the internal pipes with.
Returns
- (IDuplexPipe, IDuplexPipe)
A pair of IDuplexPipe objects.
Splice(Stream, Stream)
Combines a readable Stream with a writable Stream into a new full-duplex Stream that reads and writes to the specified streams.
public static Stream Splice(Stream readableStream, Stream writableStream)
Parameters
Returns
- Stream
A new full-duplex stream.