Table of Contents

Class FullDuplexStream

Namespace
Nerdbank.Streams
Assembly
Nerdbank.Streams.dll

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 PipeOptions

Pipe options to initialize the internal pipes with.

Returns

(Stream, Stream)

A pair of streams.

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 PipeOptions

Pipe 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

readableStream Stream

A readable stream.

writableStream Stream

A writable stream.

Returns

Stream

A new full-duplex stream.