开发者

Limiting Bandwidth of your PC using c#

开发者 https://www.devze.com 2023-04-03 21:38 出处:网络
i have check IPv4InterfaceStatistics Class of C# and its seems it display all Information of your Network, from bandwidth download / upload, Packet Sent / Rcvd, and Speed of your LAN,

i have check IPv4InterfaceStatistics Class of C# and its seems it display all Information of your Network, from bandwidth download / upload, Packet Sent / Rcvd, and Speed of your LAN,

Upon checking the properties, i have found out that all of the properties are GET only.

Is there a way for us to set / limit the bandwidth of download / upload?

thanks in advance.

PS : I need to create an application that will limit the bandwidth of a PC. Th开发者_开发技巧anks


To do that you will need to create a driver, which is not possible to do in C# (or any other managed language). So at least part of your application will need to be written in C or C++.


Maybe TcpDump

will solve you're issue ,learn how to use it than maybe you can control it from C# as a process ,if Tcpdump can't do that ,that give a try with Wireshark i think Wireshark can be implemented within C#

0

精彩评论

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

关注公众号