| 限定符和类型 | 方法和说明 |
|---|---|
abstract ClientNetSession |
AbstractConnect.getSession()
获取玩家Session
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
AbstractConnect.checkAndUpdateSession(ClientNetSession session)
检查并更新Session
|
abstract void |
AbstractConnect.setSession(ClientNetSession session)
获取玩家Session
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ThreadAdapter.doIt(ClientNetSession session,
Runnable runnable) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
CustomAuthHandler.checkNeedAuth(ClientNetSession session)
检查是否授权
|
MessageBytes |
ErrorMessageHandler.getErrorMessageByte(Throwable exception,
int msgErrorType,
ClientNetSession session,
ProtocolType type,
int msgId,
int commandId) |
boolean |
ConnectorMsgHandler.request(com.bitactor.framework.core.net.api.Channel channel,
ClientNetSession session,
ProtocolType type,
int msgId,
int commandId,
byte[] msg)
Controller 消息任务,如果返回是否需要继续往下处理
|
ControllerResp |
ControllerInvokerHandler.request(ClientNetSession session,
ProtocolType type,
int msgId,
int commandId,
byte[] msg)
同步请求后端服务器,等待消息响应
|
void |
ControllerInvokerHandler.request(ClientNetSession session,
ProtocolType type,
int msgId,
int commandId,
byte[] msg,
java.util.function.BiConsumer<ControllerResp,? super Throwable> action) |
| 限定符和类型 | 方法和说明 |
|---|---|
private ControllerResp |
ControllerInvokerHandlerImpl.doInvoker(ClientNetSession session,
ProtocolType type,
int msgId,
int commandId,
byte[] msg) |
ControllerResp |
ControllerInvokerHandlerImpl.request(ClientNetSession session,
ProtocolType type,
int msgId,
int commandId,
byte[] msg) |
void |
ControllerInvokerHandlerImpl.request(ClientNetSession session,
ProtocolType type,
int msgId,
int commandId,
byte[] msg,
java.util.function.BiConsumer<ControllerResp,? super Throwable> action) |
| 限定符和类型 | 方法和说明 |
|---|---|
MessageBytes |
ControllerContext.buildErrorMessageByte(Throwable exception,
int msgErrorType,
ClientNetSession session,
ProtocolType type,
int msgId,
int commandId)
构建错误响应
|
MappingReqParam |
ControllerContext.buildRequestMethodArgs(ClientNetSession session,
Method method,
BitactorRequestMapping mapping,
byte[] msg)
构建 BitactorRequestMapping 方法参数
|
boolean |
ControllerContext.checkNeedAuth(ClientNetSession session)
检查权限
|
void |
ControllerContext.doConnectRequest(com.bitactor.framework.core.net.api.Channel channel,
ClientNetSession session,
MessageConnectorData messageMvcData)
处理请求
|
Copyright © 2021. All rights reserved.