C# Class WebSocket.Portable.Net.TcpConnectionBase

Inheritance: ITcpConnection
显示文件 Open project: NVentimiglia/WebSocket.Portable

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ReadAsync ( byte buffer, int offset, int length ) : Task

Receives data asynchronous.

ReadAsync ( byte buffer, int offset, int length, CancellationToken cancellationToken ) : Task

Receives data asynchronous.

ReadLineAsync ( ) : Task

Receives a line asynchronous.

ReadLineAsync ( CancellationToken cancellationToken ) : Task

Receives a line asynchronous.

WriteAsync ( byte buffer, int offset, int length ) : Task

Sends data asynchronous.

WriteAsync ( byte buffer, int offset, int length, CancellationToken cancellationToken ) : Task

Sends data asynchronous.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

ReadAsync() public method

Receives data asynchronous.
public ReadAsync ( byte buffer, int offset, int length ) : Task
buffer byte The buffer.
offset int The offset.
length int The length.
return Task

ReadAsync() public abstract method

Receives data asynchronous.
public abstract ReadAsync ( byte buffer, int offset, int length, CancellationToken cancellationToken ) : Task
buffer byte The buffer.
offset int The offset.
length int The length.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

ReadLineAsync() public method

Receives a line asynchronous.
public ReadLineAsync ( ) : Task
return Task

ReadLineAsync() public abstract method

Receives a line asynchronous.
public abstract ReadLineAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

WriteAsync() public method

Sends data asynchronous.
public WriteAsync ( byte buffer, int offset, int length ) : Task
buffer byte The buffer.
offset int The offset.
length int The length.
return Task

WriteAsync() public abstract method

Sends data asynchronous.
public abstract WriteAsync ( byte buffer, int offset, int length, CancellationToken cancellationToken ) : Task
buffer byte The buffer.
offset int The offset.
length int The length.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task