Пример #1
0
 IEnumerator ping()
 {
     while (keepPing && true)
     {
         WritePacket wp = PacketFunc.CreateNullPacket();
         client.Send(wp.ToArray());
         yield return(new WaitForSeconds(8));
     }
 }
Пример #2
0
 public void Send(Agent agent)
 {
     agent.Send(wp.ToArray());
 }