public void SetMsgProcesser(BaseMsgProcesser _msgProcesser) { if (_msgProcesser == msgProcesser) { return; } joinFrameHeader = null; msgProcesser = _msgProcesser; }
public void SetMsgProcesser(BaseMsgProcesser _msgProcesser) { if (_msgProcesser == msgProcesser) { return; } msgProcesser = _msgProcesser; if (msgProcesser != null) { msgProcesser.SetDePacketor(this); } }
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); } }