示例#1
0
 protected void UnRegisterOperationErrorSockHandler <T>(SockMsgRouter.OperateErrorHandler handler, int channel = 0) where T : IProtocolHead
 {
     if (m_owner != null)
     {
         m_owner.UnRegisterOperationErrorSockHandler <T>(handler, channel);
     }
 }
示例#2
0
        public virtual void RegisterOperationErrorSockHandler <T>(SockMsgRouter.OperateErrorHandler handler, int channel = 0) where T : IProtocolHead
        {
            SockMsgRouter router = GetRouter(channel);
            UInt16        appCode = 0, funcCode = 0;
            byte          flag = 0;

            GetProtoArgs <T>(out appCode, out funcCode, out flag);

            router.RegisterOperationErrorMsgHandler(appCode, funcCode, handler);
        }
示例#3
0
        public virtual void UnRegisterOperationErrorSockHandler <T>(SockMsgRouter.OperateErrorHandler handler, int channel = 0) where T : IProtocolHead
        {
            if (null == routers[channel])
            {
                return;
            }
            UInt16 appCode = 0, funcCode = 0;
            byte   flag = 0;

            GetProtoArgs <T>(out appCode, out funcCode, out flag);

            routers[channel].UnRegisterOperationErrorMsgHandler(appCode, funcCode, handler);
        }
示例#4
0
 public void UnRegisterOperationErrorSockHandler <T>(SockMsgRouter.OperateErrorHandler handler, int channel = 0) where T : IProtocolHead
 {
     network.UnRegisterOperationErrorSockHandler <T>(handler, channel);
 }