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: bch via curl-library <curl-library_at_lists.haxx.se>
Date: Sat, 26 Aug 2023 12:30:46 -0700

On Sat, Aug 26, 2023 at 12:25 Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Sat, 26 Aug 2023, bch wrote:
>
> > Another option could be using the multi-engine as a dispatch (pardon
> > mistakes, i hope the gist is clear) -
> >
> > curlm_setopt(m,CURLMOPT_EASYITER_DATA, (void*)userdat);
> > curlm_setopt(m, CURLMOPT_EASYITER_FUNC, my_iter);
> > curlm_easy_iter(m);
>
> But is this easier or better?
>
> Then users need to call libcurl functions from within that callback, which
> can
> be tricky to handle at times.


Can you show me an example?


>
> --
>
> / daniel.haxx.se
> | Commercial curl support up to 24x7 is available!
> | Private help, bug fixes, support, ports, new features
> | https://curl.se/support.html
>


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-08-26