Esempio n. 1
0
 public static void ProtocolViolation_ControlFrameWithPayloadLength125Octets(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input)
 {
     decoder.ProtocolViolation0(ctx, input, "control frame with payload length > 125 octets");
 }
Esempio n. 2
0
 public static void ProtocolViolation_FragmentedControlFrame(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input)
 {
     decoder.ProtocolViolation0(ctx, input, "fragmented control frame");
 }
Esempio n. 3
0
 public static void ProtocolViolation_RecCloseControlFrame(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input)
 {
     decoder.ProtocolViolation0(ctx, input, "received close control frame with payload len 1");
 }
Esempio n. 4
0
 public static void ProtocolViolation_ControlFrameUsingReservedOpcode(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input, int frameOpcode)
 {
     decoder.ProtocolViolation0(ctx, input, $"control frame using reserved opcode {frameOpcode}");
 }
Esempio n. 5
0
 public static void ProtocolViolation_InvalidDataFrameLength(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input)
 {
     decoder.ProtocolViolation0(ctx, input, "invalid data frame length (not using minimal length encoding)");
 }
Esempio n. 6
0
 public static void ProtocolViolation_RecContionuationDataFrame(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input)
 {
     decoder.ProtocolViolation0(ctx, input, "received continuation data frame outside fragmented message");
 }
Esempio n. 7
0
 public static void ProtocolViolation_MaxFrameLengthHasBeenExceeded(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input, long maxFramePayloadLength)
 {
     decoder.ProtocolViolation0(ctx, input, WebSocketCloseStatus.MessageTooBig, $"Max frame length of {maxFramePayloadLength} has been exceeded.");
 }
Esempio n. 8
0
 public static void ProtocolViolation_InvalidCloseFrameStatusCode(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input, int statusCode)
 {
     decoder.ProtocolViolation0(ctx, input, $"Invalid close frame getStatus code: {statusCode}");
 }
Esempio n. 9
0
 public static void ProtocolViolation_InvalidCloseFrameBody(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input)
 {
     decoder.ProtocolViolation0(ctx, input, WebSocketCloseStatus.InvalidPayloadData, "Invalid close frame body");
 }
Esempio n. 10
0
 public static void ProtocolViolation_RSVNoExtensionNegotiated(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input, int frameRsv)
 {
     decoder.ProtocolViolation0(ctx, input, $"RSV != 0 and no extension negotiated, RSV:{frameRsv}");
 }
Esempio n. 11
0
 public static void ProtocolViolation_RecAFrameThatIsNotMaskedAsExected(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input)
 {
     decoder.ProtocolViolation0(ctx, input, "received a frame that is not masked as expected");
 }