Пример #1
0
        public void SetMsgProcesser(BaseMsgProcesser _msgProcesser)
        {
            if (_msgProcesser == msgProcesser)
            {
                return;
            }

            joinFrameHeader = null;
            msgProcesser    = _msgProcesser;
        }
Пример #2
0
        public void SetMsgProcesser(BaseMsgProcesser _msgProcesser)
        {
            if (_msgProcesser == msgProcesser)
            {
                return;
            }

            msgProcesser = _msgProcesser;
            if (msgProcesser != null)
            {
                msgProcesser.SetDePacketor(this);
            }
        }
Пример #3
0
        public void UnPack(SocketEvent ev, NetSocket socket)
        {
            BaseMsgProcesser msgProcesser = socket.GetMsgProcesser();

            if (msgProcesser != null)
            {
                msgProcesser.UnPack(ev, socket);
            }
            else if (unPack != null)
            {
                unPack(ev, socket);
                socket.SetMsgProcesser((BaseMsgProcesser)unPackParam);
            }
        }