C# 클래스 vtortola.WebSockets.WebSocketHandshaker

파일 보기 프로젝트 열기: vtortola/WebSocketListener 1 사용 예제들

공개 메소드들

메소드 설명
HandshakeAsync ( Stream clientStream ) : Task
WebSocketHandshaker ( WebSocketFactoryCollection factories, vtortola.WebSockets.WebSocketListenerOptions options ) : System

비공개 메소드들

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

메소드 상세

HandshakeAsync() 공개 메소드

public HandshakeAsync ( Stream clientStream ) : Task
clientStream Stream
리턴 Task

WebSocketHandshaker() 공개 메소드

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