Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my auto update software,I use the WebClient to download updatefiles,but how do I limit the speed of download?
Posted

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.
 
Share this answer
 
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?
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.
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900