Click here to Skip to main content
14,574,641 members
Rate this:
Please Sign up or sign in to vote.
See more:
In my auto update software,I use the WebClient to download updatefiles,but how do I limit the speed of download?
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 1

AFAIK, This will not be possible at the WebClient level.
You will need to look at the network settings to control this - either on client or server.
   
v2
Comments
Venkatesh Mookkan 2-Mar-11 1:34am
   
Good Answer. Have 5!
Abhinav S 2-Mar-11 3:30am
   
Thank you.
tpywocao 2-Mar-11 3:38am
   
Network setting?Do you mean to set in the computer system?
Rate this:
Please Sign up or sign in to vote.

Solution 2

Using the WebClient, you don't. It'll download as fast as the server sending the file and your network connection can handle.

If you want to pace the download, you'll have to implement your own version of the WebClient class (using TCP sockets) so you can pace the download of each block of data yourself.
   
Comments
Venkatesh Mookkan 2-Mar-11 1:34am
   
Good Answer. Have 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100