curl-library
Re: No "completed" callback in libcurl
Date: Tue, 18 May 2010 18:42:31 -0500
Thank you very much, I missed that while reading the docs.
Alex Hudson
On Tue, May 18, 2010 at 2:10 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> yOn Mon, 17 May 2010, Alex Hudson wrote:
>
> I'm writing a program using PyCurl; however, my problem seems to relate to
>> the underlying libcurl library, so I'll ask it on this list. I'm using the
>> libcurl multi interface, and I need some way to determine if a given
>> transfer has completed. It would be most convenient if I were able to
>> supply
>> a callback that would be called when the transfer completes; however,
>> there
>> doesn't seem to be an option for this.
>>
>
> curl_multi_info_read() is what you need. It is mentioned in the multi
> interface overview[1] and in the curl_multi_perform man page[2]. I don't
> know how we can document it better.
>
>
> The only thing that would seem to be of use is mentioned in the online
>> docs: "curl_multi_perform(3) stores the number of still running transfers in
>> one of its input arguments, and by reading that you can figure out when all
>> the transfers in the multi handles are done." This doesn't give me the
>> fine-grained level of control that I need, though. Am I missing something,
>> or is the feature not there?
>>
>
> There's no callback for that, no.
>
> [1] = http://curl.haxx.se/libcurl/c/libcurl-multi.html
> [2] = http://curl.haxx.se/libcurl/c/curl_multi_perform.html
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-19