namespace NetWorkMessage { public static class NetErrorCode { // 20000 以内是 SocketError 内置的 public const int Success = 0; #region 框架 100000 起 /// /// RPC id 添加失败 /// public const int ERR_RpcIdAddFail = 100000; public const int ERR_NotFoundActor = 100001; public const int ERR_Timeout = 100002; /// /// 链接已经断开 /// public const int ERR_PeerDisconnect = 100003; /// /// TChannel 接收错误 /// public const int ERR_TChannelRecvError = 100004; /// /// 解析包错误 /// public const int ERR_PacketParserError = 100005; /// /// Socket 错误 /// public const int ERR_SocketError = 100006; /// /// 发送消息没有找到Channel /// public const int ERR_SendMessageNotFoundTChannel = 100007; /// /// RPC 调用报错 /// public const int ERR_RPCFail = 100008; /// /// 没有找到处理器 /// public const int ERR_NotFoundHandle = 100009; /// /// 没找到ActorSession /// public const int ERR_NotFoundActorSession = 100010; /// /// 网络连接断开 /// public const int ERR_ActorSessionDisconnect = 100011; #endregion #region 业务 200000 起 public const int ERR_BindUserNotFondSession = 200001; #endregion } }