Click here to Skip to main content
13,801,682 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 1-Mar-11 19:51pm
Rate this: bad
 
good
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.
  Permalink  
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: bad
 
good
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.
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.181215.1 | Last Updated 2 Mar 2011
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

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