cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Control download state

From: Immanuel Gregoire <junk_at_igrspace.com>
Date: Thu, 13 Dec 2007 11:07:06 -0800 (PST)

Andreas Volz wrote

> how is it possible to;
>
> * control the state (pause, restart, cancel) of a download

pause: for an easy handle, you can use sleep() in the data callback
function. Do the transfer in a seperate thread if you want your
application to do something else in the mean while. That is how i have
done it before.
Received on 2007-12-13