.NET Framework Bookmark and Share   
 index > .NET Base Class Library > How to control/restrict internet speed?
 

How to control/restrict internet speed?

Hi,

I'm trying to write a simple app that monitors bandwidth usage and restrict it accordingly. While I have some idea on retrieving network statistics (kbps, total received/sent etc) via performance counters, I've not been able to find any classes in the BCL that I can use to limit a network's speed.

Any ideas? Or perhaps, are there any functions in Win32 that will help me achieve this?

Thanks
Min Chew
There is no API to throttle TCP/IP bandwidth, just as there's no API to make your hard disk slower. It can only be done artificially by each individual app by calling Sleep(). Doing it at the TCP/IP stack level requires a filter driver, you can't write those in a managed language.

Hans Passant.
  • Marked As Answer byMin Chew Wednesday, July 22, 2009 12:51 AM
  •  
nobugz
There is no API to throttle TCP/IP bandwidth, just as there's no API to make your hard disk slower. It can only be done artificially by each individual app by calling Sleep(). Doing it at the TCP/IP stack level requires a filter driver, you can't write those in a managed language.

Hans Passant.
  • Marked As Answer byMin Chew Wednesday, July 22, 2009 12:51 AM
  •  
nobugz

You can use google to search for other answers

Custom Search

More Threads

• WMI Remote Access for making changes in DNS
• casting object to interface
• How to get memory size reported in task manager
• DefautValueAttribute usage
• Compiling a .cs file that resides in memory
• MMC 3.0 About box details
• Unload Type/Assembly
• Key/Val Pair using Generic.Dictionary
• Evaluating an Expression Dynamically
• SerialPort issues, and handling errors gracefully