curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Getting a list of easy handles in a multi handle - possible?

From: Richard W.M. Jones via curl-library <curl-library_at_lists.haxx.se>
Date: Sun, 27 Aug 2023 17:13:49 +0100

On Sat, Aug 26, 2023 at 09:05:04PM +0200, Daniel Stenberg via curl-library wrote:
> On Sat, 26 Aug 2023, Jeroen Ooms wrote:
>
> >I am also (still) interested: https://curl.se/mail/lib-2016-06/0002.html
>
> Seven years later, what do you know! At least I was positive about
> it already back then.
>
> How about something basic like this?
>
> /*
> * Returns an easy handle from the multi handle
> *
> * If 'prev' is NULL, return the first.
> * If 'prev' is not NULL:
> * - if 'prev' identifies a handle in the multi handle, return the next
> * - if 'prev' is not a handle present in the multi, return the first
> *
> * Returns NULL if the above has no handle to return.
> */
> CURL *curl_multi_easy(CURLM *multi, CURL *prev);

I believe for our use (removing and freeing the easy handles from the
multi), simply having the ability to return the first easy handle --
or *any* easy handle -- would be sufficient. Of course that's not a
very general API ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-08-27