예제 #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);
     }
 }