Modifier and Type | Method and Description |
---|---|
ImPacket |
ImDecoder.decode(ByteBuffer buffer,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Method and Description |
---|---|
static boolean |
ImAio.send(org.tio.core.ChannelContext channelContext,
ImPacket packet)
发送到指定通道;
|
static void |
ImAio.sendToGroup(String group,
ImPacket packet)
功能描述:[发送到群组(所有不同协议端)]
创建者:WChao 创建时间: 2017年9月21日 下午3:26:57
|
static Boolean |
ImAio.sendToId(String channelId,
ImPacket packet)
发消息给指定ChannelContext id
|
static void |
ImAio.sendToIp(org.tio.core.GroupContext groupContext,
String ip,
ImPacket packet)
发送到指定ip对应的集合
|
static void |
ImAio.sendToUser(String userid,
ImPacket packet)
发送到指定用户;
|
Modifier and Type | Method and Description |
---|---|
ImPacket |
ImClusterVo.getPacket() |
Modifier and Type | Method and Description |
---|---|
void |
ICluster.clusterToChannelId(org.tio.core.GroupContext groupContext,
String channelId,
ImPacket packet) |
void |
ICluster.clusterToGroup(org.tio.core.GroupContext groupContext,
String group,
ImPacket packet) |
void |
ICluster.clusterToIp(org.tio.core.GroupContext groupContext,
String ip,
ImPacket packet) |
void |
ICluster.clusterToUser(org.tio.core.GroupContext groupContext,
String userid,
ImPacket packet) |
void |
ImClusterVo.setPacket(ImPacket packet) |
Constructor and Description |
---|
ImClusterVo(ImPacket packet) |
Modifier and Type | Method and Description |
---|---|
void |
RedisCluster.clusterToChannelId(org.tio.core.GroupContext groupContext,
String channelId,
ImPacket packet) |
void |
RedisCluster.clusterToGroup(org.tio.core.GroupContext groupContext,
String group,
ImPacket packet) |
void |
RedisCluster.clusterToIp(org.tio.core.GroupContext groupContext,
String ip,
ImPacket packet) |
void |
RedisCluster.clusterToUser(org.tio.core.GroupContext groupContext,
String userid,
ImPacket packet) |
Modifier and Type | Class and Description |
---|---|
class |
HttpPacket |
class |
HttpRequest |
class |
HttpResponse |
Modifier and Type | Method and Description |
---|---|
ImPacket |
HttpConvertPacket.ReqPacket(byte[] body,
Command command,
org.tio.core.ChannelContext channelContext) |
ImPacket |
HttpConvertPacket.RespPacket(byte[] body,
Command command,
org.tio.core.ChannelContext channelContext)
转HTTP协议响应包;
|
Modifier and Type | Method and Description |
---|---|
boolean |
HttpProtocol.isProtocol(ImPacket imPacket,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Method and Description |
---|---|
ImPacket |
IConvertProtocolPacket.ReqPacket(byte[] body,
Command command,
org.tio.core.ChannelContext channelContext)
转化请求包
|
ImPacket |
IConvertProtocolPacket.RespPacket(byte[] body,
Command command,
org.tio.core.ChannelContext channelContext)
转化响应包
|
Modifier and Type | Method and Description |
---|---|
boolean |
IProtocol.isProtocol(ImPacket imPacket,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Class and Description |
---|---|
class |
TcpPacket
版本: [1.0]
功能说明:
作者: WChao 创建时间: 2017年8月21日 下午3:51:05
|
Modifier and Type | Method and Description |
---|---|
ImPacket |
TcpConvertPacket.ReqPacket(byte[] body,
Command command,
org.tio.core.ChannelContext channelContext)
转TCP协议请求包;
|
ImPacket |
TcpConvertPacket.RespPacket(byte[] body,
Command command,
org.tio.core.ChannelContext channelContext)
转TCP协议响应包;
|
Modifier and Type | Method and Description |
---|---|
boolean |
TcpProtocol.isProtocol(ImPacket imPacket,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Method and Description |
---|---|
static ImPacket |
ImKit.ConvertRespPacket(byte[] body,
Command command,
org.tio.core.ChannelContext channelContext)
功能描述:[转换不同协议响应包]
创建者:WChao 创建时间: 2017年9月21日 下午3:21:54
|
static ImPacket |
ImKit.ConvertRespPacket(ImPacket imPacket,
Command command,
org.tio.core.ChannelContext channelContext) |
static ImPacket |
ImKit.ConvertRespPacket(RespBody respBody,
org.tio.core.ChannelContext channelContext)
功能描述:[转换不同协议响应包]
创建者:WChao 创建时间: 2017年9月21日 下午3:21:54
|
static ImPacket |
ChatKit.dataInCorrectRespPacket(org.tio.core.ChannelContext channelContext)
聊天数据格式不正确响应包
|
static ImPacket |
ChatKit.offlineRespPacket(org.tio.core.ChannelContext channelContext)
聊天用户不在线响应包
|
static ImPacket |
ChatKit.sendSuccessRespPacket(org.tio.core.ChannelContext channelContext)
聊天发送成功响应包
|
Modifier and Type | Method and Description |
---|---|
static ImPacket |
ImKit.ConvertRespPacket(ImPacket imPacket,
Command command,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Class and Description |
---|---|
class |
WsPacket
版本: [1.0]
功能说明:
作者: WChao 创建时间: 2017年9月6日 上午11:11:09
|
class |
WsRequestPacket |
class |
WsResponsePacket |
Modifier and Type | Method and Description |
---|---|
ImPacket |
IWsMsgHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
WsConvertPacket.ReqPacket(byte[] body,
Command command,
org.tio.core.ChannelContext channelContext) |
ImPacket |
WsConvertPacket.RespPacket(byte[] body,
Command command,
org.tio.core.ChannelContext channelContext)
Websocket响应包;
|
Modifier and Type | Method and Description |
---|---|
ImPacket |
IWsMsgHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
boolean |
WsProtocol.isProtocol(ImPacket imPacket,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Method and Description |
---|---|
ImPacket |
CmdHandlerIntf.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Method and Description |
---|---|
ImPacket |
CmdHandlerIntf.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Method and Description |
---|---|
ImPacket |
JoinGroupReqHandler.bindGroup(ImPacket packet,
org.tio.core.ChannelContext channelContext)
绑定群组
|
ImPacket |
MessageReqHandler.getMessageFailedPacket(org.tio.core.ChannelContext channelContext)
获取用户消息失败响应包;
|
ImPacket |
MessageReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
HeartbeatReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
ChatReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
JoinGroupReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
AuthReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
UserReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
HandshakeReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
CloseReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
LoginReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Method and Description |
---|---|
ImPacket |
JoinGroupReqHandler.bindGroup(ImPacket packet,
org.tio.core.ChannelContext channelContext)
绑定群组
|
ImPacket |
MessageReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
HeartbeatReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
ChatReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
JoinGroupReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
AuthReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
UserReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
HandshakeReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
CloseReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
LoginReqHandler.handler(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
void |
JoinGroupReqHandler.joinGroupNotify(ImPacket packet,
org.tio.core.ChannelContext channelContext)
发送进房间通知;
|
Modifier and Type | Method and Description |
---|---|
boolean |
MsgQueueRunnable.addMsg(ImPacket msg) |
void |
AbstractChatProcessor.handler(ImPacket chatPacket,
org.tio.core.ChannelContext channelContext) |
void |
ChatProcessorIntf.handler(ImPacket chatPacket,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Method and Description |
---|---|
ImPacket |
TcpHandshakeProcessor.handshake(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
WsHandshakeProcessor.handshake(ImPacket packet,
org.tio.core.ChannelContext channelContext)
对httpResponsePacket参数进行补充并返回,如果返回null表示不想和对方建立连接,框架会断开连接,如果返回非null,框架会把这个对象发送给对方
|
ImPacket |
HandshakeProcessorIntf.handshake(ImPacket packet,
org.tio.core.ChannelContext channelContext)
对httpResponsePacket参数进行补充并返回,如果返回null表示不想和对方建立连接,框架会断开连接,如果返回非null,框架会把这个对象发送给对方
|
Modifier and Type | Method and Description |
---|---|
ImPacket |
TcpHandshakeProcessor.handshake(ImPacket packet,
org.tio.core.ChannelContext channelContext) |
ImPacket |
WsHandshakeProcessor.handshake(ImPacket packet,
org.tio.core.ChannelContext channelContext)
对httpResponsePacket参数进行补充并返回,如果返回null表示不想和对方建立连接,框架会断开连接,如果返回非null,框架会把这个对象发送给对方
|
ImPacket |
HandshakeProcessorIntf.handshake(ImPacket packet,
org.tio.core.ChannelContext channelContext)
对httpResponsePacket参数进行补充并返回,如果返回null表示不想和对方建立连接,框架会断开连接,如果返回非null,框架会把这个对象发送给对方
|
void |
TcpHandshakeProcessor.onAfterHandshaked(ImPacket packet,
org.tio.core.ChannelContext channelContext)
握手成功后
|
void |
WsHandshakeProcessor.onAfterHandshaked(ImPacket packet,
org.tio.core.ChannelContext channelContext)
握手成功后
|
void |
HandshakeProcessorIntf.onAfterHandshaked(ImPacket packet,
org.tio.core.ChannelContext channelContext)
握手成功后
|
Modifier and Type | Method and Description |
---|---|
ImPacket |
DemoWsHandshakeProcessor.handshake(ImPacket packet,
org.tio.core.ChannelContext channelContext)
WS握手方法,返回Null则业务层不同意握手,断开连接!
|
Modifier and Type | Method and Description |
---|---|
ImPacket |
DemoWsHandshakeProcessor.handshake(ImPacket packet,
org.tio.core.ChannelContext channelContext)
WS握手方法,返回Null则业务层不同意握手,断开连接!
|
Modifier and Type | Method and Description |
---|---|
ImPacket |
WsProtocolHandler.decode(ByteBuffer buffer,
org.tio.core.ChannelContext channelContext) |
Modifier and Type | Method and Description |
---|---|
WsResponsePacket |
WsMsgHandler.handler(ImPacket imPacket,
org.tio.core.ChannelContext channelContext) |
Copyright © 2018. All rights reserved.