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

Reply via email to