cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Upload speed and remaining time

From: Dumitru Adrian <dumitru.adryi095_at_yahoo.com>
Date: Wed, 5 Jan 2011 04:48:55 -0800 (PST)

I tryed with something like this

int progres(void *clientp,double dltotal,double dlnow,double ultotal,double ulnow)                             
{
    double speed=0;
    SendMessage(baraprogres,PBM_SETPOS,(WPARAM)((ulnow/ultotal)*100),0);
    curl_easy_getinfo(curl,CURLINFO_SPEED_UPLOAD,&speed);
    //send speed to a static control
    return 0;
}
variablie curl is globaly declared
But upload speed is always 0

You said i can get upload speed with progressfunction, but i don't know how.
What clienp variablile contains?

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