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: Daniel Stenberg via curl-library <>
Date: Mon, 28 Aug 2023 12:41:58 +0200 (CEST)

On Mon, 28 Aug 2023, Stefan Eissing via curl-library wrote:

>>>> CURL **handles = curl_multi_get_handles(multi);
> The tricky part is to handle iterations when easy handles are removed and
> freed during the iteration. If we save pointers, this can become tedious.

Right, but it has the nice property that it is a fixed snapshot in time. When
you iterate over this list and remove handles or even add new handles to the
multi, this list is already created and remains unmodified.

Almost all other iterating APIs will be harder to document and possibly to
use, when you remove and add handles while traversing the handles.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2023-08-28