/// <summary> /// 链路测试 /// </summary> /// <param name="client"></param> /// <param name="buffer"></param> private void ProActive(CommuTcpClient client, byte[] buffer) { Active active = new Active(buffer); //OnRaiseMsgRecvEvent(client, active.ToString()); ActiveResp activeResp = new ActiveResp(active.Header.Sequence_Id); client.SendData(activeResp.ToBytes()); }
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()); }