Calculate Bandwith

This is a discussion on Calculate Bandwith within the Networking/Device Communication forums, part of the General Programming Boards category; Hi, i have a little problem =D.
The description is:
I have a file server that it must send of ...

uhm.... I am pretty sure all you do is send the same size buffer each second regardless of connection, say if you want to limit to 50 KB/s as a max, send a buffer of size 50KB every second, instead of sending a buffer that is = the size of the file, in which case, it will be recieved at the highed download(theirs)/upload(yours) rate. I am pretty sure most ftp servers have some sort of variable in their script to limit bandwidth(I know apache has an extension that will prevent transfer above a certain amount).