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); } }
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; } }
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; } }
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); } }