curl-library
Re: Progress
Date: Sun, 18 Feb 2001 22:21:53 -0500
I am using the following callback that only sets some global
vars right now, then I am accessing those global vars from
a java app interfaced to it, but the general idea is there:
int myprogress_callback(void *notused, size_t d_tot, size_t d_now,
size_t u_tot, size_t u_now)
{
dltotal = d_tot;
dlnow = d_now;
ultotal = u_tot;
ulnow = u_now;
return progret;
}
returning progret not zero is supposed to abort the transfer.
Hope that helps,
Bob Schader
pit_at_paradise.net.nz wrote:
>
> Hi.
>
> How can i check the progress of uploading/downloading?
>
> I saw CURLOPT_PROGRESSFUNCTION but couldn't figure out
> how to use it.
>
> I would like to use my own interface to show the progress.
> So i guess i need to know how big the uploading/downloading
> is then what current size is.
>
> Well any adivse will help me.
> I'm really stuck...
> ^^;;
>
> _______________________________________________
> Curl-library mailing list
> Curl-library_at_lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/curl-library
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-02-19