示例#1
0
 void ping_PingReply(Metro.NetworkLayer.IpV4.IpV4Packet ipHeader, Metro.TransportLayer.Icmp.IcmpPacket icmpHeader, int roundTripTime)
 {
     lock (threadLocker)
     {
         PingUpdate pu = new PingUpdate();
         pu.ipHeader      = ipHeader;
         pu.icmpHeader    = icmpHeader;
         pu.RoundTripTime = roundTripTime;
         pu.dateReceived  = DateTime.Now;
         PingList.Add(pu);
         pingReady = true;
         this.Invoke(mivPing);
     }
 }
示例#2
0
 void ping_PingTimeout()
 {
     lock (threadLocker)
     {
         ping.CancelPing();
         PingUpdate pu = new PingUpdate();
         pu.ipHeader      = null;
         pu.icmpHeader    = null;
         pu.RoundTripTime = 0;
         PingList.Add(pu);
         this.Invoke(mivPing);
         pingReady = true;
     }
 }
示例#3
0
 void ping_PingTimeout()
 {
     lock(threadLocker)
     {
         ping.CancelPing();
         PingUpdate pu = new PingUpdate();
         pu.ipHeader = null;
         pu.icmpHeader = null;
         pu.RoundTripTime = 0;
         PingList.Add(pu);
         this.Invoke(mivPing);
         pingReady = true;
     }
 }
示例#4
0
 void ping_PingReply(Metro.NetworkLayer.IpV4.IpV4Packet ipHeader, Metro.TransportLayer.Icmp.IcmpPacket icmpHeader, int roundTripTime)
 {
     lock(threadLocker)
     {
         PingUpdate pu = new PingUpdate();
         pu.ipHeader = ipHeader;
         pu.icmpHeader = icmpHeader;
         pu.RoundTripTime = roundTripTime;
         pu.dateReceived = DateTime.Now;
         PingList.Add(pu);
         pingReady = true;
         this.Invoke(mivPing);
     }
 }