public class LocalPacketCodec extends io.netty.handler.codec.ByteToMessageCodec<AbstractLocalPacket>
Constructor and Description |
---|
LocalPacketCodec() |
Modifier and Type | Method and Description |
---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buf,
List<Object> out) |
static AbstractLocalPacket |
decodeNetworkPacket(io.netty.buffer.ByteBuf buf) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
AbstractLocalPacket msg,
io.netty.buffer.ByteBuf out) |
acceptOutboundMessage, channelInactive, channelRead, channelReadComplete, decodeLast, handlerAdded, handlerRemoved, write
bind, close, connect, deregister, disconnect, flush, read
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf, List<Object> out) throws Exception
decode
in class io.netty.handler.codec.ByteToMessageCodec<AbstractLocalPacket>
Exception
public static AbstractLocalPacket decodeNetworkPacket(io.netty.buffer.ByteBuf buf) throws OpenR66ProtocolPacketException
OpenR66ProtocolPacketException
protected void encode(io.netty.channel.ChannelHandlerContext ctx, AbstractLocalPacket msg, io.netty.buffer.ByteBuf out) throws Exception
encode
in class io.netty.handler.codec.ByteToMessageCodec<AbstractLocalPacket>
Exception
Copyright © 2009–2020 Waarp. All rights reserved.