Beispiel #1
0
 private void pingHandler()
 {
     while (true)
     {
         if (closeEvent.WaitOne(1000))
         {
             return;
         }
         try {
             Send(new PacketData(PacketID.Ping, BitConverter.GetBytes(ServerTime.GetNowUnixTime())));
         } catch (Exception) {
             return;
         }
     }
 }