public static void ProtocolViolation_ControlFrameWithPayloadLength125Octets(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input) { decoder.ProtocolViolation0(ctx, input, "control frame with payload length > 125 octets"); }
public static void ProtocolViolation_FragmentedControlFrame(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input) { decoder.ProtocolViolation0(ctx, input, "fragmented control frame"); }
public static void ProtocolViolation_RecCloseControlFrame(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input) { decoder.ProtocolViolation0(ctx, input, "received close control frame with payload len 1"); }
public static void ProtocolViolation_ControlFrameUsingReservedOpcode(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input, int frameOpcode) { decoder.ProtocolViolation0(ctx, input, $"control frame using reserved opcode {frameOpcode}"); }
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)"); }
public static void ProtocolViolation_RecContionuationDataFrame(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input) { decoder.ProtocolViolation0(ctx, input, "received continuation data frame outside fragmented message"); }
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."); }
public static void ProtocolViolation_InvalidCloseFrameStatusCode(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input, int statusCode) { decoder.ProtocolViolation0(ctx, input, $"Invalid close frame getStatus code: {statusCode}"); }
public static void ProtocolViolation_InvalidCloseFrameBody(this WebSocket08FrameDecoder decoder, IChannelHandlerContext ctx, IByteBuffer input) { decoder.ProtocolViolation0(ctx, input, WebSocketCloseStatus.InvalidPayloadData, "Invalid close frame body"); }
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}"); }
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"); }