Bandwidth Limit

I wrote an application that synchronizes local folders with online folders, but it eats all my bandwidth, how can I limit the bandwidth of the application? (Programmatically)?

+5
source share
3 answers

Take a look at http://www.codeproject.com/KB/IP/MyDownloader.aspx

It uses the well-known method, which can be found in Downloader.Extension \ SpeedLimit

Basically, before reading more data, the stream checks how much data has actually been read from the previous iteration. If this speed exceeds the maximum speed, the read command pauses for a very short time, and the test is repeated. Most applications use this technique.

+2
source

Try the following: http://www.netlimiter.com/ For a long time he was on my "check this" list (although I have not tried it yet I still).

0
source

" ". - , . .

:

a) md5 . / , . , .

b) . 1-8 , Thread.Sleep , . .

c) Gzip. (System.IO.Compression) , .

, !

0

All Articles