예제 #1
0
        private void ProWt_ActiveResp()
        {
            _lastActiveDate = DateTime.Now;
            ActiveResp actvieResp = new ActiveResp(_buffer);

            OnRaiseMsgRecvEvent(actvieResp.Header.Command_Id, actvieResp, "接收消息:" + actvieResp.ToString());
        }
예제 #2
0
        private void ProWt_Active()
        {
            Active     active     = new Active(_buffer);
            ActiveResp actvieResp = new ActiveResp(active.Header.Sequence_Id);

            OnRaiseMsgRecvEvent(active.Header.Command_Id, active, "接收消息:" + active.ToString());
            SendData(actvieResp.ToBytes());
            OnRaiseMsgSendEvent(actvieResp.Header.Command_Id, actvieResp, "发送消息:" + actvieResp.ToString());
        }