Click here to Skip to main content
15,908,254 members
Please Sign up or sign in to vote.
1.20/5 (3 votes)
See more:
hi, I'd like to download a file from a c# application but, I'd like to be able to limit the network bandwidth that I use, from the client side how can I limit the download speed?
help me.
Posted
Comments
[no name] 24-Aug-12 13:38pm    
Add "help me." to topic then body and topic are same.

Refer following link this will help to solve your problem:
Bandwidth throttling[^]
 
Share this answer
 
Comments
samadblaj 24-Aug-12 12:11pm    
The web and is hard.
samadblaj 24-Aug-12 12:23pm    
Windows Applection, no web.
hitesh_tech 24-Aug-12 12:49pm    
I believe there is one class ThrottledStream and by doing some minor modification to that you can use in windows too. The stream that you are providing on client now just provide using ThrottledStream.
samadblaj 24-Aug-12 12:57pm    
Thanks for the help good friend.
I'm going to learn ThrottledStream
samadblaj 24-Aug-12 13:00pm    
ThrottledStream comes with restrictions placed on all systems?
You should try for sensible subject lines, not the whole question. You application cannot request a speed. You'd need to have something running on the network that throttled the speed overall. You CAN download a file in lumps, in a repeating loop, so you could time how quick that happens and wait for the next request, so long as you don't wait so long that it times out.
 
Share this answer
 
Comments
samadblaj 24-Aug-12 11:53am    
tanks,
Now lets get code
Christian Graus 24-Aug-12 11:55am    
I rarely write code for people. I've told you what to do. If you get stuck you can ask again, but you'll never be a programmer if you don't learn to do research, and write your own code.
samadblaj 24-Aug-12 12:13pm    
nooooooooo,help me.
tanks you,
Christian Graus 24-Aug-12 12:15pm    
IT's really a simple concept, and yet, it's not possible to write code you can copy and paste anyhow. Just try to do it and ask back if you're stuck
[no name] 24-Aug-12 12:19pm    
If you want someone to write code for you, you have to hire them....

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