cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Upload speed and remaining time

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 5 Jan 2011 23:59:24 +0100 (CET)

On Wed, 5 Jan 2011, Dumitru Adrian wrote:

>     curl_easy_getinfo(curl,CURLINFO_SPEED_UPLOAD,&speed);

> But upload speed is always 0

Right, it is quite clearly documented that curl_easy_getinfo() returns results
about transfers *after* the transfer and not during them.

> You said i can get upload speed with progressfunction, but i don't know how.

You know how much has been downloaded. You can easily figure out how long the
transfer's been going. Math!

> What clienp variablile contains?

The pointer you set with CURLOPT_PROGRESSDATA.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-06