Exemple #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");
 }
Exemple #2
0
 public static void ProtocolViolation_FragmentedControlFrame(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input)
 {
     decoder.ProtocolViolation0(ctx, input, "fragmented control frame");
 }
Exemple #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");
 }
Exemple #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}");
 }
Exemple #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)");
 }
Exemple #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");
 }
Exemple #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.");
 }
Exemple #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}");
 }
Exemple #9
0
 public static void ProtocolViolation_InvalidCloseFrameBody(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input)
 {
     decoder.ProtocolViolation0(ctx, input, WebSocketCloseStatus.InvalidPayloadData, "Invalid close frame body");
 }
Exemple #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}");
 }
Exemple #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");
 }