C# 클래스 DotNetty.Codecs.Http.WebSockets.WebSocketServerHandshakerFactory

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

공개 메소드들

메소드 설명
NewHandshaker ( IHttpRequest req ) : DotNetty.Codecs.Http.WebSockets.WebSocketServerHandshaker

Instances a new handshaker

SendUnsupportedVersionResponse ( IChannel channel ) : Task

Return that we need cannot not support the web socket version

WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, DotNetty.Codecs.Http.WebSockets.WebSocketDecoderConfig decoderConfig ) : System.Threading.Tasks

Constructor specifying the destination web socket location

WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, bool allowExtensions ) : System.Threading.Tasks

Constructor specifying the destination web socket location

WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, bool allowExtensions, int maxFramePayloadLength ) : System.Threading.Tasks

Constructor specifying the destination web socket location

WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, bool allowExtensions, int maxFramePayloadLength, bool allowMaskMismatch ) : System.Threading.Tasks

Constructor specifying the destination web socket location

메소드 상세

NewHandshaker() 공개 메소드

Instances a new handshaker
public NewHandshaker ( IHttpRequest req ) : DotNetty.Codecs.Http.WebSockets.WebSocketServerHandshaker
req IHttpRequest
리턴 DotNetty.Codecs.Http.WebSockets.WebSocketServerHandshaker

SendUnsupportedVersionResponse() 공개 정적인 메소드

Return that we need cannot not support the web socket version
public static SendUnsupportedVersionResponse ( IChannel channel ) : Task
channel IChannel
리턴 Task

WebSocketServerHandshakerFactory() 공개 메소드

Constructor specifying the destination web socket location
public WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, DotNetty.Codecs.Http.WebSockets.WebSocketDecoderConfig decoderConfig ) : System.Threading.Tasks
webSocketUrl string URL for web socket communications. e.g "ws://myhost.com/mypath". /// Subsequent web socket frames will be sent to this URL.
subprotocols string CSV of supported protocols. Null if sub protocols not supported.
decoderConfig DotNetty.Codecs.Http.WebSockets.WebSocketDecoderConfig Frames decoder options.
리턴 System.Threading.Tasks

WebSocketServerHandshakerFactory() 공개 메소드

Constructor specifying the destination web socket location
public WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, bool allowExtensions ) : System.Threading.Tasks
webSocketUrl string URL for web socket communications. e.g "ws://myhost.com/mypath". /// Subsequent web socket frames will be sent to this URL.
subprotocols string CSV of supported protocols. Null if sub protocols not supported.
allowExtensions bool Allow extensions to be used in the reserved bits of the web socket frame
리턴 System.Threading.Tasks

WebSocketServerHandshakerFactory() 공개 메소드

Constructor specifying the destination web socket location
public WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, bool allowExtensions, int maxFramePayloadLength ) : System.Threading.Tasks
webSocketUrl string URL for web socket communications. e.g "ws://myhost.com/mypath". /// Subsequent web socket frames will be sent to this URL.
subprotocols string CSV of supported protocols. Null if sub protocols not supported.
allowExtensions bool Allow extensions to be used in the reserved bits of the web socket frame
maxFramePayloadLength int Maximum allowable frame payload length. Setting this value to your application's /// requirement may reduce denial of service attacks using long data frames.
리턴 System.Threading.Tasks

WebSocketServerHandshakerFactory() 공개 메소드

Constructor specifying the destination web socket location
public WebSocketServerHandshakerFactory ( string webSocketUrl, string subprotocols, bool allowExtensions, int maxFramePayloadLength, bool allowMaskMismatch ) : System.Threading.Tasks
webSocketUrl string URL for web socket communications. e.g "ws://myhost.com/mypath". /// Subsequent web socket frames will be sent to this URL.
subprotocols string CSV of supported protocols. Null if sub protocols not supported.
allowExtensions bool Allow extensions to be used in the reserved bits of the web socket frame
maxFramePayloadLength int Maximum allowable frame payload length. Setting this value to your application's /// requirement may reduce denial of service attacks using long data frames.
allowMaskMismatch bool When set to true, frames which are not masked properly according to the standard will still be /// accepted.
리턴 System.Threading.Tasks