public class TcpSendClient extends Object implements org.tio.client.intf.ClientAioHandler
| 构造器和说明 |
|---|
TcpSendClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
McmPacket |
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)
消息处理
|
McmPacket |
heartbeatPacket() |
public McmPacket decode(ByteBuffer buffer, int limit, int position, int readableLength, org.tio.core.ChannelContext channelContext)
decode 在接口中 org.tio.core.intf.AioHandlerpublic ByteBuffer encode(org.tio.core.intf.Packet packet, org.tio.core.GroupContext groupContext, org.tio.core.ChannelContext channelContext)
encode 在接口中 org.tio.core.intf.AioHandlerpublic void handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext)
throws Exception
handler 在接口中 org.tio.core.intf.AioHandlerExceptionpublic McmPacket heartbeatPacket()
heartbeatPacket 在接口中 org.tio.client.intf.ClientAioHandlerCopyright © 2019. All rights reserved.