protected void UnRegisterOperationErrorSockHandler <T>(SockMsgRouter.OperateErrorHandler handler, int channel = 0) where T : IProtocolHead { if (m_owner != null) { m_owner.UnRegisterOperationErrorSockHandler <T>(handler, channel); } }
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); }
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); }
public void UnRegisterOperationErrorSockHandler <T>(SockMsgRouter.OperateErrorHandler handler, int channel = 0) where T : IProtocolHead { network.UnRegisterOperationErrorSockHandler <T>(handler, channel); }