cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] Getting percentage completed of HTTP uploads

From: <leighm_at_linuxbandwagon.com>
Date: Mon, 20 Jun 2005 16:39:44 +1000

You link in a call back, you can make it talk to another thread too

int progress_callback(DialogThread *ext_dthread, double dltotal, double dlnow,
double ultotal, double ulnow) {

        // set the progress based on % transfered
        ext_dthread->Dialog->set_progress((100/ultotal)*ulnow);

    return 0;

}

Quoting leighm_at_linuxbandwagon.com:

> Hi there
>
> well i figured out my non-blocking problem, im using wxWidgets so i just
> launched another wxThread to handle the network and a thread to
> handle the UI.
>
> My app is doing a HTTP Upload of a fairly large file (5meg) over 56k dialups,
> this app will be used somewhere between 200-600 installations, and must be a
> HTTP Upload
>
> Just wondering, how do i get some kind of feedback for a HTTP Upload
> transfer/completed amount?
>
> leigh
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>

-- 
What happened to Java version 2, 3 & 4? Why is Java 1.41 called Java2? What
version is JRE 5? what happened to them? Where did they go? Why do i download
Java1.x when im looking for Java2.0 ?
And those java fellas reckon the PHP fellas are disorganised!
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp

Received on 2005-06-20

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET