How can I get communication bandwidth for each process under os windows?

I would like to know about software that can do this, and if it can be programmed under .net. please do not send inappropriate software! thank

-1
source share
2 answers

If you want to program it, you will have to sniff the network traffic, this can be done, for example, using the WinPCap driver.

If you need a working program, you can take any sniffer like a free SmartSniff.

0
source

I do not think that network information is stored by the process, but only for the entire system:

// using System.Net.NetworkInformation;
foreach (var network in NetworkInterface.GetAllNetworkInterfaces())
{
    IPv4InterfaceStatistics stats = network.GetIPv4Statistics();
    Console.WriteLine("In={0}, Out={1}", stats.BytesReceived, stats.BytesSent);
}
0
source

All Articles