C# Class vtortola.WebSockets.WebSocketListener

Inheritance: IDisposable
Exibir arquivo Open project: vtortola/WebSocketListener Class Usage Examples

Public Methods

Method Description
AcceptWebSocketAsync ( CancellationToken token ) : Task
Dispose ( ) : void
Start ( ) : void
Stop ( ) : void
WebSocketListener ( IPEndPoint endpoint ) : System
WebSocketListener ( IPEndPoint endpoint, vtortola.WebSockets.WebSocketListenerOptions options ) : System

Private Methods

Method Description
ConfigureSocket ( Socket client ) : void
StartAccepting ( ) : Task

Method Details

AcceptWebSocketAsync() public method

public AcceptWebSocketAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
return Task

Dispose() public method

public Dispose ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

WebSocketListener() public method

public WebSocketListener ( IPEndPoint endpoint ) : System
endpoint System.Net.IPEndPoint
return System

WebSocketListener() public method

public WebSocketListener ( IPEndPoint endpoint, vtortola.WebSockets.WebSocketListenerOptions options ) : System
endpoint System.Net.IPEndPoint
options vtortola.WebSockets.WebSocketListenerOptions
return System