How to programmatically limit bandwidth usage of my c# application?

Mats picture Mats · May 11, 2009 · Viewed 20.4k times · Source

I've got a backup application here which connects to various webservices and downloads/uploads files from ftp or http servers. What is the easiest way to limit the bandwidth usage of my application?

I need to do that because the application once installed and running will be slowing down internet access for all office people, which eventually will get me into hell. So I'd like to implement a speed-limit which is active during the work-hours and gets disabled at night.

Answer

Issa Qandil picture Issa Qandil · May 11, 2009

What you are looking for is called Bandwidth throttling And here is a good example how is this done, also review the comments to know how it is done from a client side.

You may also want to take a look at this example too, putting things in a real application