C# Class WebSocket.Portable.Net.TcpConnectionBase

Inheritance: ITcpConnection
Afficher le fichier Open project: NVentimiglia/WebSocket.Portable

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Method Details

Dispose() public méthode

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

Dispose() protected méthode

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.
Résultat void

ReadAsync() public méthode

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

ReadAsync() public abstract méthode

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.
Résultat Task

ReadLineAsync() public méthode

Receives a line asynchronous.
public ReadLineAsync ( ) : Task
Résultat Task

ReadLineAsync() public abstract méthode

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

WriteAsync() public méthode

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

WriteAsync() public abstract méthode

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.
Résultat Task