Exemple #1
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);
            }
        }