C# 클래스 WebSocket.Portable.TcpConnection

상속: WebSocket.Portable.Net.TcpConnectionBase
파일 보기 프로젝트 열기: NVentimiglia/WebSocket.Portable 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_client Sockets.Plugin.TcpSocketClient

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

메소드 상세

ConnectAsync() 공개 메소드

public ConnectAsync ( string address, CancellationToken cancellationToken ) : Task
address string
cancellationToken System.Threading.CancellationToken
리턴 Task

ConnectAsync() 공개 메소드

public ConnectAsync ( string address, int port, CancellationToken cancellationToken ) : Task
address string
port int
cancellationToken System.Threading.CancellationToken
리턴 Task

Dispose() 보호된 메소드

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.
리턴 void

ReadAsync() 공개 메소드

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.
리턴 Task

ReadLineAsync() 공개 메소드

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

TcpConnection() 공개 메소드

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.
리턴 System

WriteAsync() 공개 메소드

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.
리턴 Task

프로퍼티 상세

_client 공개적으로 프로퍼티

public TcpSocketClient,Sockets.Plugin _client
리턴 Sockets.Plugin.TcpSocketClient