cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi API and removing handles

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 1 Feb 2010 23:38:23 +0100 (CET)

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
Received on 2010-02-01