C# Class Lawo.IO.TelnetStream

Inheritance: BufferStream
显示文件 Open project: Lawo/ember-plus-sharp Class Usage Examples

Public Methods

Method Description
FlushAsync ( CancellationToken cancellationToken ) : Task
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
TelnetStream ( ReadAsyncCallback readAsync, WriteAsyncCallback writeAsync, Func dataAvailable ) : System

Initializes a new instance of the TelnetStream class.

Private Methods

Method Description
ReadByte ( ReadBuffer readBuffer, byte buffer, int &index ) : byte[]
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteByte ( byte buffer, int offset, WriteBuffer writeBuffer ) : int

Method Details

FlushAsync() public final method

public final FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

ReadAsync() public final method

public final ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
return Task

TelnetStream() public method

Initializes a new instance of the TelnetStream class.
, and/or /// equal null.
public TelnetStream ( ReadAsyncCallback readAsync, WriteAsyncCallback writeAsync, Func dataAvailable ) : System
readAsync ReadAsyncCallback
writeAsync WriteAsyncCallback
dataAvailable Func
return System