Example #1
0
        public int Ping(uint Time, byte[] Data)
        {
            CCSTesterMsgCaller MsgCaller = new CCSTesterMsgCaller(m_Operator, m_CurMsgSenderID);

            MsgCaller.Ping((uint)System.Environment.TickCount, Data);

            CCSTesterAckMsgCaller AckMsgCaller = new CCSTesterAckMsgCaller(m_Operator, m_CurMsgSenderID);

            AckMsgCaller.PingAck(0, Time);
            return(0);
        }
Example #2
0
 void OnObjectReport(OBJECT_ID ObjectID, byte[] Data)
 {
     if (ObjectID != m_Operator.GetObjectID())
     {
         m_TargetID = ObjectID;
         Logger.Log("Finded{0}", m_TargetID);
         if (IsActive)
         {
             byte[] PingData = new byte[32];
             for (int i = 0; i < 100; i++)
             {
                 CCSTesterMsgCaller MsgCaller = new CCSTesterMsgCaller(m_Operator, m_TargetID);
                 MsgCaller.Ping((uint)System.Environment.TickCount, PingData);
             }
         }
     }
 }