C# Class vtortola.WebSockets.WebSocketHandshaker

Mostra file Open project: vtortola/WebSocketListener Class Usage Examples

Public Methods

Method Description
HandshakeAsync ( Stream clientStream ) : Task
WebSocketHandshaker ( WebSocketFactoryCollection factories, vtortola.WebSockets.WebSocketListenerOptions options ) : System

Private Methods

Method Description
AssertArrayIsAtLeast ( String array, Int32 length, String error ) : void
BuildExtensions ( List extensionList, String header, String extensions ) : void
ConsolidateObjectModel ( WebSocketHandshake handshake ) : void
IsHttpHeadersValid ( WebSocketHandshake handShake ) : bool
ParseCookies ( WebSocketHandshake handshake ) : void
ParseGET ( String line, WebSocketHandshake handshake ) : void
ParseHeader ( String line, WebSocketHandshake handshake ) : void
ParseWebSocketExtensions ( WebSocketHandshake handshake ) : void
ParseWebSocketProtocol ( WebSocketHandshake handshake ) : void
ReadHttpRequest ( Stream clientStream, WebSocketHandshake handshake ) : void
RunHttpNegotiationHandler ( WebSocketHandshake handshake ) : void
SelectExtensions ( WebSocketHandshake handshake ) : void
SendNegotiationErrorResponse ( StreamWriter writer, HttpStatusCode code ) : void
SendNegotiationResponse ( WebSocketHandshake handshake, StreamWriter writer ) : void
SendVersionNegotiationErrorResponse ( StreamWriter writer ) : void
WriteHandshakeCookies ( WebSocketHandshake handshake, StreamWriter writer ) : void
WriteHttpResponse ( WebSocketHandshake handshake, Stream clientStream ) : void
WriteHttpResponseAsync ( WebSocketHandshake handshake, Stream clientStream ) : System.Threading.Tasks.Task
WriteResponseInternal ( WebSocketHandshake handshake, StreamWriter writer ) : void

Method Details

HandshakeAsync() public method

public HandshakeAsync ( Stream clientStream ) : Task
clientStream Stream
return Task

WebSocketHandshaker() public method

public WebSocketHandshaker ( WebSocketFactoryCollection factories, vtortola.WebSockets.WebSocketListenerOptions options ) : System
factories WebSocketFactoryCollection
options vtortola.WebSockets.WebSocketListenerOptions
return System