C# Class m.Http.Backend.WebSockets.FrameDecoder

Mostrar archivo Open project: joongonn/mHttp Class Usage Examples

Public Methods

Method Description
TryDecodeCloseReason ( byte closePayload, ushort &statusCode, string &reason ) : bool
TryDecodeHeader ( byte buffer, int &dataStart, int end, bool &isFin, OpCode &opCode, bool &isMasked, int &payloadLength, byte mask ) : bool
TryDecodePayload ( byte buffer, int &start, int end, int payloadLength, bool isMasked, byte mask ) : bool

Private Methods

Method Description
GetOpCode ( int b ) : OpCode

Method Details

TryDecodeCloseReason() public static method

public static TryDecodeCloseReason ( byte closePayload, ushort &statusCode, string &reason ) : bool
closePayload byte
statusCode ushort
reason string
return bool

TryDecodeHeader() public static method

public static TryDecodeHeader ( byte buffer, int &dataStart, int end, bool &isFin, OpCode &opCode, bool &isMasked, int &payloadLength, byte mask ) : bool
buffer byte
dataStart int
end int
isFin bool
opCode OpCode
isMasked bool
payloadLength int
mask byte
return bool

TryDecodePayload() public static method

public static TryDecodePayload ( byte buffer, int &start, int end, int payloadLength, bool isMasked, byte mask ) : bool
buffer byte
start int
end int
payloadLength int
isMasked bool
mask byte
return bool