public class PacketCodec extends io.netty.handler.codec.ByteToMessageCodec<Packet>
| Constructor and Description |
|---|
PacketCodec() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Packet in,
io.netty.buffer.ByteBuf out) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
acceptOutboundMessage, channelInactive, channelRead, channelReadComplete, decodeLast, handlerRemoved, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.handler.codec.ByteToMessageCodec<Packet>java.lang.Exceptionprotected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
java.util.List<java.lang.Object> out)
decode in class io.netty.handler.codec.ByteToMessageCodec<Packet>