curl-library
Re: Best Way to stop current running easy handle/Multi handle
Date: Tue, 7 Jan 2014 10:00:32 +0100
Le 7 janv. 2014 à 09:50, "Stefano D. Mtangoo" <mwinjilisti_at_gmail.com> a écrit :
> I want to just cancel
> current task (stop transfer or whatever is happening with multi/easy)
> is calling easy/multi cleanup a way to go? If no is libcurl having such mechanism?
You can find the official guidelines here (FAQ):
http://curl.haxx.se/docs/faq.html#How_do_I_stop_an_ongoing_transfe
The progress function documentation[1] is helpful too: see the "Returning a non-zero value from this callback ..." part.
Cédric
[1]: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROGRESSFUNCTION
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-07