C# Class WebSocket.Portable.TcpConnection

Inheritance: WebSocket.Portable.Net.TcpConnectionBase
Afficher le fichier Open project: NVentimiglia/WebSocket.Portable Class Usage Examples

Méthodes publiques

Свойство Type Description
_client Sockets.Plugin.TcpSocketClient

Méthodes publiques

Méthode Description
ConnectAsync ( string address, CancellationToken cancellationToken ) : Task
ConnectAsync ( string address, int port, CancellationToken cancellationToken ) : Task
ReadAsync ( byte buffer, int offset, int length, CancellationToken cancellationToken ) : Task

Receives data asynchronous.

ReadLineAsync ( CancellationToken cancellationToken ) : Task

Receives a line asynchronous.

TcpConnection ( bool useSsl ) : System

Initializes a new instance of the TcpConnection class.

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

ConnectAsync() public méthode

public ConnectAsync ( string address, CancellationToken cancellationToken ) : Task
address string
cancellationToken System.Threading.CancellationToken
Résultat Task

ConnectAsync() public méthode

public ConnectAsync ( string address, int port, CancellationToken cancellationToken ) : Task
address string
port int
cancellationToken System.Threading.CancellationToken
Résultat Task

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, 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 ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken The cancellation token.
Résultat Task

TcpConnection() public méthode

Initializes a new instance of the TcpConnection class.
public TcpConnection ( bool useSsl ) : System
useSsl bool if set to true the connection is secured using SSL.
Résultat System

WriteAsync() public méthode

Sends data asynchronous.
public 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

Property Details

_client public_oe property

public TcpSocketClient,Sockets.Plugin _client
Résultat Sockets.Plugin.TcpSocketClient