Control Upload Speed

leedo2k

Active member
Joined
Nov 9, 2006
Messages
28
Programming Experience
Beginner
hi,

I have a ftpclient application that uploads hundreds of megs each day to remote clients. However, I need to limit the upload speed now that the remote site has a slow link. What techniques can i use to accomplish that? I suppose there may be a driver or an API that can do that.

How can this be done?

thanks
 
TcpClient/Socket writes blocks when network buffer is full and won't continue until receiver has read some. In my "refusing client" tests this happens around 80-120KB.
 
If you try to write data and buffer is full then the write statement stops, it can't write if buffer is full, so it just stops waiting for the buffer to be not full anymore and continues writing when there is room.
 
Back
Top