WIP
parent
8b031ae438
commit
127a272ba8
|
@ -73,14 +73,10 @@ namespace ln.http.websocket
|
||||||
|
|
||||||
Opcode = (WebSocketOpcode)(firstByte & 0x0F);
|
Opcode = (WebSocketOpcode)(firstByte & 0x0F);
|
||||||
|
|
||||||
Logging.Log(LogLevel.DEBUG, "WebSocket: FirstByte=0x{0:x8}",firstByte);
|
|
||||||
|
|
||||||
int secondByte = stream.ReadByte();
|
int secondByte = stream.ReadByte();
|
||||||
if (secondByte == -1)
|
if (secondByte == -1)
|
||||||
throw new IOException();
|
throw new IOException();
|
||||||
|
|
||||||
Logging.Log(LogLevel.DEBUG, "WebSocket: SecondByte=0x{0:x8}", secondByte);
|
|
||||||
|
|
||||||
Mask = (secondByte & 0x80) != 0;
|
Mask = (secondByte & 0x80) != 0;
|
||||||
|
|
||||||
int pLength = (secondByte) & 0x7F;
|
int pLength = (secondByte) & 0x7F;
|
||||||
|
|
Loading…
Reference in New Issue