cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi API and removing handles

From: Ravi Kasibhatla <kasibhatla.ravi_at_gmail.com>
Date: Tue, 2 Feb 2010 10:24:16 +0530

Thanks for the response. Yes, it was clear but I was just hoping that I
could get some method for getting them even in non-complete cases. :)

On Tue, Feb 2, 2010 at 4:08 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Mon, 1 Feb 2010, Ravi Kasibhatla wrote:
>
> Is there any way of getting all the easy handles which are added to a
>> particular curl multi handle?
>>
>
> Not by using libcurl, no, but since your app added them all I figure it
> could easily remember them too!
>
>
> My requirement is that in an error case, I need to remove all the curl
>> easy handles I have added to a particular multi handle and re-add them on
>> some specific event action.
>>
>
> libcurl has no built-in way to do that.
>
>
> The closet API I found was the curl_multi_info_read(), which gives the
>> curl easy handle in the message. In my case, when I try to read message from
>> that multi handle, I get the null message indicating no message from
>> libcurl.
>>
>
> Right, there are only messages there when transfers have completed. Isn't
> that quite clear in the docs?
>
>
> --
>
> / 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-02-02