Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 299
Mats Avatar asked May 11 '09 09:05

Mats


People also ask

How do I limit application bandwidth usage?

To configure this, head to Settings > Update & Security > Windows Update > Advanced Options > Delivery Optimization > Advanced Options. Toggle the “Limit how much bandwidth is used for downloading updates in the background” option here.

How do I limit Windows bandwidth usage?

Select Settings > Network & internet. In the network connection status at the top for the network you're connected to, select Data usage. To enter a data limit for that network, select Enter limit, choose the Limit type you have for your data plan, enter other limit info, and then select Save.


1 Answers

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

like image 56
Issa Qandil Avatar answered Oct 11 '22 22:10

Issa Qandil