3 writes to Opcode
System.Net.WebSockets (3)
System\Net\WebSockets\ManagedWebSocket.cs (3)
98
private MessageHeader _lastReceiveHeader = new MessageHeader {
Opcode
= MessageOpcode.Text, Fin = true, Processed = true };
889
header.
Opcode
= _lastReceiveHeader.Opcode;
1306
header.
Opcode
= (MessageOpcode)(receiveBufferSpan[_receiveBufferOffset] & 0xF);
16 references to Opcode
System.Net.WebSockets (16)
System\Net\WebSockets\ManagedWebSocket.cs (16)
860
NetEventSource.Trace(this, $"Next frame opcode={header.
Opcode
}, fin={header.Fin}, compressed={header.Compressed}, payloadLength={header.PayloadLength}");
875
if (header.
Opcode
== MessageOpcode.Ping || header.
Opcode
== MessageOpcode.Pong)
880
else if (header.
Opcode
== MessageOpcode.Close)
887
if (header.
Opcode
== MessageOpcode.Continuation)
889
header.Opcode = _lastReceiveHeader.
Opcode
;
894
Debug.Assert(header.
Opcode
== MessageOpcode.Binary || header.
Opcode
== MessageOpcode.Text, $"Unexpected opcode {header.
Opcode
}");
902
messageType: header.
Opcode
== MessageOpcode.Text ? WebSocketMessageType.Text : WebSocketMessageType.Binary,
985
if (header.
Opcode
== MessageOpcode.Text &&
999
header.
Opcode
== MessageOpcode.Text ? WebSocketMessageType.Text : WebSocketMessageType.Binary,
1183
bool processPing = header.
Opcode
== MessageOpcode.Ping;
1185
bool processPong = header.
Opcode
== MessageOpcode.Pong && _keepAlivePingState is not null
1362
switch (header.
Opcode
)
1407
return SR.Format(SR.net_Websockets_UnknownOpcode, header.
Opcode
);