[英]How do I measure the upload and download bandwidth utilization per each process on windows xp/2003/2008 in realtime using C#?
如何使用C#在Windows XP / 2003/2008上实时测量每个进程的上载和下载带宽利用率?
Use one of these 2 libraries to capture packets : 使用以下两个库之一捕获数据包:
http://www.codeproject.com/KB/cs/pacanal.aspx http://www.codeproject.com/KB/cs/pacanal.aspx
or 要么
http://www.codeproject.com/KB/cs/pktcap.aspx http://www.codeproject.com/KB/cs/pktcap.aspx
. 。 Then: 然后:
In fact, once you manage to capture the packets, and associate them to a process, it's done. 实际上,一旦您成功捕获了数据包并将它们与流程相关联,就完成了。 Then all you have to do is a bit of algebra. 然后,您要做的只是一点代数。
There may be other solutions, but that's the only one I can think of right now. 可能还有其他解决方案,但这是我目前唯一想到的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.