PDA

Click to See Complete Forum and Search --> : Calculating Transfer Rate and Time Left


omarswan
Feb 19th, 2000, 04:01 PM
Hi,
When Transfering a file using winsock how can you Calcule Transfer Rate and Time Left.



------------------
OmarSwan
omarswan@yahoo.com
http://www.omarswan.cjb.net
To God Be The Glory

privoli
Feb 20th, 2000, 10:38 AM
When sending a file using raw winsock you can use the following...

a). In the event of Winsock_DataArrival it has totalBytes as long, use that to measure how many kilobytes per second you are download it...

b). To get the time left, calculate full file size and work out how fast you are download at, see point (a) and then estimate it from there...

------------------
Regards,

Paul Rivoli
-------------------
privoli@bigpond.com
http://users.bigpond.com/privoli