curl-library
Re: How to resume a paused download.
Date: Sat, 7 Sep 2013 18:47:00 +0200
On 07.09.2013, at 18:01, Md Kashif <mail_kashif_at_yahoo.co.in> wrote:
> Hi,
>
> I'm trying to implement a simple download manager application that supports Pause\ Resume functionality that can pause or resume download based on a button click from user.
> As I see it I can pause my download by returning CURL_WRITEFUNC_PAUSE from my write function. But I'm wondering how would I resume my download back because the thread would just hang after returning CURL_WRITEFUNC_PAUSE.
> Since I cannot call curl_easy_pause() from another thread how do I resume the download?
>
>
> Thanks.
Hi,
Take a look at curl_easy_pause: http://curl.haxx.se/libcurl/c/curl_easy_pause.html
Best regards,
Clemens
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- application/pgp-signature attachment: Message signed with OpenPGP using GPGMail