How to programmatically limit bandwidth usage of m

2019-01-07 09:09发布

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.

1条回答
祖国的老花朵
2楼-- · 2019-01-07 09:31

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

查看更多
登录 后发表回答