Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found this link (<a href="http://www.dreamincode.net/forums/topic/71263-using-the-ping-class-in-c%23/" rel="nofollow noreferrer">http://www.dreamincode.net/forums/topic/71263-using-the-ping-class-in-c%23/</a>) helpful with looking at the Ping class but I have not found a way to set the source for a Ping.</p> <p>One thing to keep in mind when using ICMP based pings is that networking equipment will often give ICMP traffic lower priority than normal packets, especially when the packets cross network boundaries such as WAN links. This can lead to pings being dropped or showing higher latency than traffic is actually experiencing and lends itself to being an indicator of problems rather than a measurement <a href="https://stackoverflow.com/a/1671489/901395">https://stackoverflow.com/a/1671489/901395</a></p> <p>The biggest question may be is, is your application going to be on a network with QoS and if so what type of traffic are you really looking at measuring?</p> <p>IPGlobalStatistics class may be of assistance: <a href="http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipglobalstatistics(v=vs.90).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipglobalstatistics(v=vs.90).aspx</a></p> <p>this answer may be helpful as well: <a href="https://stackoverflow.com/a/2506432/901395">https://stackoverflow.com/a/2506432/901395</a> using the code below to loop through the interfaces </p> <pre><code>class MainClass { static void Main() { if (!NetworkInterface.GetIsNetworkAvailable()) return; NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces(); foreach (NetworkInterface ni in interfaces) { Console.WriteLine(" Bytes Sent: {0}", ni.GetIPv4Statistics().BytesSent); Console.WriteLine(" Bytes Received: {0}", ni.GetIPv4Statistics().BytesReceived); } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload