public class ImServerAioHandler extends Object implements org.tio.server.intf.ServerAioHandler
Constructor and Description |
---|
ImServerAioHandler() |
Modifier and Type | Method and Description |
---|---|
org.tio.core.intf.Packet |
decode(ByteBuffer buffer,
int limit,
int position,
int readableLength,
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) |
public void handler(org.tio.core.intf.Packet packet, org.tio.core.ChannelContext channelContext) throws Exception
handler
in interface org.tio.core.intf.AioHandler
packet
- Exception
org.tio.core.intf.AioHandler#handler(org.tio.core.intf.Packet)
public ByteBuffer encode(org.tio.core.intf.Packet packet, org.tio.core.GroupContext groupContext, org.tio.core.ChannelContext channelContext)
encode
in interface org.tio.core.intf.AioHandler
packet
- org.tio.core.intf.AioHandler#encode(org.tio.core.intf.Packet)
public org.tio.core.intf.Packet decode(ByteBuffer buffer, int limit, int position, int readableLength, org.tio.core.ChannelContext channelContext) throws org.tio.core.exception.AioDecodeException
decode
in interface org.tio.core.intf.AioHandler
buffer
- org.tio.core.exception.AioDecodeException
org.tio.core.intf.AioHandler#decode(java.nio.ByteBuffer)
Copyright © 2018. All rights reserved.