Results 1 to 2 of 2

Thread: Calculating Transfer Rate and Time Left

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Post

    Hi,
    When Transfering a file using winsock how can you Calcule Transfer Rate and Time Left.



    ------------------
    OmarSwan
    [email protected]
    http://www.omarswan.cjb.net
    To God Be The Glory

  2. #2
    Lively Member
    Join Date
    Nov 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    126

    Post

    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
    -------------------
    [email protected]
    http://users.bigpond.com/privoli

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width