开发者

how can i get connection bandwidth used per process under windows os?

i would like to know about software that can do thi开发者_运维百科s and if it is possible to be programmed under the .net framework. please dont post irrelevant software! thank you


If you want to program it, you'll have to sniff network traffic, it might be done via WinPCap driver for example.

If you want a working program, you may take any sniffer like free SmartSniff.


I don't think that network information is stored by process, but only for 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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜