curl-library
Re: asynchronous transfer doesn't start
Date: Wed, 10 Oct 2012 22:52:32 +0200 (CEST)
On Wed, 10 Oct 2012, Lisa Vitolo wrote:
> I'm surely doing something wrong but from the tutorial and the example codes
> I cannot find out what.
Really? REALLY?
> CURLM* multiHandle = curl_multi_init();
> curl_multi_add_handle(multiHandle, handle);
> curl_multi_perform(multiHandle, &progress);
> while (1);
There's no code snippet in any example we provide that looks like this. You
need to keep calling curl_multi_perform() until the transfer is completed. See
the documentation:
Tutorial: http://curl.haxx.se/libcurl/c/libcurl-multi.html
curl_multi_perform details at
http://curl.haxx.se/libcurl/c/curl_multi_perform.html
Example showing a download of a single file with the multi interface:
http://curl.haxx.se/libcurl/c/multi-single.html
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-10-10