C# 클래스 WebSocket.Portable.WebSocketBase

상속: ICanLog, IWebSocket
파일 보기 프로젝트 열기: NVentimiglia/WebSocket.Portable

공개 메소드들

메소드 설명
CloseAsync ( WebSocketErrorCode errorCode ) : Task
ConnectAsync ( string uri, int port, bool useSSL ) : Task

Connects asynchronous.

ConnectAsync ( string uri, int port, bool useSSL, CancellationToken cancellationToken ) : Task

Connects asynchronous.

Dispose ( ) : void
ReceiveFrameAsync ( ) : Task
ReceiveFrameAsync ( CancellationToken cancellationToken ) : Task
RegisterExtension ( IWebSocketExtension extension ) : void
SendFrameAsync ( IWebSocketFrame frame ) : Task
SendFrameAsync ( IWebSocketFrame frame, CancellationToken cancellationToken ) : Task
SendHandshakeAsync ( ) : Task

Sends the default handshake asynchronous.

SendHandshakeAsync ( CancellationToken cancellationToken ) : Task

Sends the default handshake asynchronous.

SendHandshakeAsync ( WebSocket.Portable.WebSocketRequestHandshake handshake ) : Task

Sends the handshake asynchronous.

SendHandshakeAsync ( WebSocket.Portable.WebSocketRequestHandshake handshake, CancellationToken cancellationToken ) : Task

Sends the handshake asynchronous.

SetSubProtocol ( string subProtocol ) : void

보호된 메소드들

메소드 설명
ConnectAsyncInternal ( string host, int port, bool useSsl, CancellationToken cancellationToken ) : Task

Connects asynchronous.

WebSocketBase ( ) : System

Prevents a default instance of the WebSocketBase class from being created.

비공개 메소드들

메소드 설명
SendAsync ( byte buffer, int offset, int length, CancellationToken cancellationToken ) : Task

Sends data asynchronous.

SendAsync ( string data, Encoding encoding, CancellationToken cancellationToken ) : Task

Sends data asynchronous.

메소드 상세

CloseAsync() 공개 메소드

public CloseAsync ( WebSocketErrorCode errorCode ) : Task
errorCode WebSocketErrorCode
리턴 Task

ConnectAsync() 공개 메소드

Connects asynchronous.
public ConnectAsync ( string uri, int port, bool useSSL ) : Task
uri string The URI.
port int
useSSL bool
리턴 Task

ConnectAsync() 공개 메소드

Connects asynchronous.
Cannot connect because current state is + _state
public ConnectAsync ( string uri, int port, bool useSSL, CancellationToken cancellationToken ) : Task
uri string The URI.
port int
useSSL bool
cancellationToken System.Threading.CancellationToken The cancellation token.
리턴 Task

ConnectAsyncInternal() 보호된 추상적인 메소드

Connects asynchronous.
protected abstract ConnectAsyncInternal ( string host, int port, bool useSsl, CancellationToken cancellationToken ) : Task
host string The host.
port int The port.
useSsl bool if set to true [use SSL].
cancellationToken System.Threading.CancellationToken The cancellation token.
리턴 Task

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ReceiveFrameAsync() 공개 메소드

public ReceiveFrameAsync ( ) : Task
리턴 Task

ReceiveFrameAsync() 공개 메소드

public ReceiveFrameAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
리턴 Task

RegisterExtension() 공개 메소드

public RegisterExtension ( IWebSocketExtension extension ) : void
extension IWebSocketExtension
리턴 void

SendFrameAsync() 공개 메소드

public SendFrameAsync ( IWebSocketFrame frame ) : Task
frame IWebSocketFrame
리턴 Task

SendFrameAsync() 공개 메소드

public SendFrameAsync ( IWebSocketFrame frame, CancellationToken cancellationToken ) : Task
frame IWebSocketFrame
cancellationToken System.Threading.CancellationToken
리턴 Task

SendHandshakeAsync() 공개 메소드

Sends the default handshake asynchronous.
public SendHandshakeAsync ( ) : Task
리턴 Task

SendHandshakeAsync() 공개 메소드

Sends the default handshake asynchronous.
public SendHandshakeAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken The cancellation token.
리턴 Task

SendHandshakeAsync() 공개 메소드

Sends the handshake asynchronous.
public SendHandshakeAsync ( WebSocket.Portable.WebSocketRequestHandshake handshake ) : Task
handshake WebSocket.Portable.WebSocketRequestHandshake The handshake.
리턴 Task

SendHandshakeAsync() 공개 메소드

Sends the handshake asynchronous.
public SendHandshakeAsync ( WebSocket.Portable.WebSocketRequestHandshake handshake, CancellationToken cancellationToken ) : Task
handshake WebSocket.Portable.WebSocketRequestHandshake The handshake.
cancellationToken System.Threading.CancellationToken The cancellation token.
리턴 Task

SetSubProtocol() 공개 메소드

public SetSubProtocol ( string subProtocol ) : void
subProtocol string
리턴 void

WebSocketBase() 보호된 메소드

Prevents a default instance of the WebSocketBase class from being created.
protected WebSocketBase ( ) : System
리턴 System