Exemple #1
0
 protected void DisplayReply(PingReply reply)
 {
     if (reply == null)
     {
         return;
     }
     if (reply.get_Status() == null)
     {
         this.pingValue = (int)reply.get_RoundtripTime();
         Debug.Log("pingValue: " + this.pingValue);
     }
     else
     {
         Debug.Log("Ping 返回失败");
     }
 }