public class TcpProtocolHandler extends AbProtocolHandler
Constructor and Description |
---|
TcpProtocolHandler() |
Modifier and Type | Method and Description |
---|---|
TcpPacket |
decode(ByteBuffer buffer,
org.tio.core.ChannelContext channelContext) |
ByteBuffer |
encode(org.tio.core.intf.Packet packet,
org.tio.core.GroupContext groupContext,
org.tio.core.ChannelContext channelContext) |
void |
handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext) |
void |
init(ImConfig imConfig) |
IProtocol |
protocol() |
decode
public void init(ImConfig imConfig)
init
in class AbProtocolHandler
public ByteBuffer encode(org.tio.core.intf.Packet packet, org.tio.core.GroupContext groupContext, org.tio.core.ChannelContext channelContext)
public void handler(org.tio.core.intf.Packet packet, org.tio.core.ChannelContext channelContext) throws Exception
Exception
public TcpPacket decode(ByteBuffer buffer, org.tio.core.ChannelContext channelContext) throws org.tio.core.exception.AioDecodeException
decode
in class AbProtocolHandler
org.tio.core.exception.AioDecodeException
public IProtocol protocol()
protocol
in class AbProtocolHandler
Copyright © 2018. All rights reserved.