C# Class WebSocket4Net.Protocol.DraftHybi00Processor

http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-00
Inheritance: ProtocolProcessorBase
Show file Open project: kerryjiang/WebSocket4Net

Public Properties

Property Type Description
CloseHandshake byte[]

Public Methods

Method Description
CreateHandshakeReader ( WebSocket websocket ) : ReaderBase
SendCloseHandshake ( WebSocket websocket, int statusCode, string closeReason ) : void
SendData ( WebSocket websocket, IList segments ) : void
SendData ( WebSocket websocket, byte data, int offset, int length ) : void
SendHandshake ( WebSocket websocket ) : void
SendMessage ( WebSocket websocket, string message ) : void
SendPing ( WebSocket websocket, string ping ) : void
SendPong ( WebSocket websocket, string pong ) : void
VerifyHandshake ( WebSocket websocket, WebSocketCommandInfo handshakeInfo, string &description ) : bool

Private Methods

Method Description
DraftHybi00Processor ( ) : System
GenerateSecKey ( ) : byte[]
GenerateSecKey ( int totalLen ) : byte[]
GetResponseSecurityKey ( string secKey1, string secKey2, byte secKey3 ) : byte[]

Method Details

CreateHandshakeReader() public method

public CreateHandshakeReader ( WebSocket websocket ) : ReaderBase
websocket WebSocket
return ReaderBase

SendCloseHandshake() public method

public SendCloseHandshake ( WebSocket websocket, int statusCode, string closeReason ) : void
websocket WebSocket
statusCode int
closeReason string
return void

SendData() public method

public SendData ( WebSocket websocket, IList segments ) : void
websocket WebSocket
segments IList
return void

SendData() public method

public SendData ( WebSocket websocket, byte data, int offset, int length ) : void
websocket WebSocket
data byte
offset int
length int
return void

SendHandshake() public method

public SendHandshake ( WebSocket websocket ) : void
websocket WebSocket
return void

SendMessage() public method

public SendMessage ( WebSocket websocket, string message ) : void
websocket WebSocket
message string
return void

SendPing() public method

public SendPing ( WebSocket websocket, string ping ) : void
websocket WebSocket
ping string
return void

SendPong() public method

public SendPong ( WebSocket websocket, string pong ) : void
websocket WebSocket
pong string
return void

VerifyHandshake() public method

public VerifyHandshake ( WebSocket websocket, WebSocketCommandInfo handshakeInfo, string &description ) : bool
websocket WebSocket
handshakeInfo WebSocketCommandInfo
description string
return bool

Property Details

CloseHandshake public static property

public static byte[] CloseHandshake
return byte[]