public class NettyPacketEncoder extends io.netty.handler.codec.MessageToByteEncoder<IPacket<?>>
Modifier and Type | Field and Description |
---|---|
private PacketDirection |
direction |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static org.apache.logging.log4j.Marker |
RECEIVED_PACKET_MARKER |
Constructor and Description |
---|
NettyPacketEncoder(PacketDirection direction) |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext p_encode_1_,
IPacket<?> p_encode_2_,
io.netty.buffer.ByteBuf p_encode_3_) |
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
private static final org.apache.logging.log4j.Logger LOGGER
private static final org.apache.logging.log4j.Marker RECEIVED_PACKET_MARKER
private final PacketDirection direction
public NettyPacketEncoder(PacketDirection direction)