OpenSuSE Man Pages

Man Page or Keyword Search:
Man Architecture
Apropos Keyword Search (all sections) Output format
home | help
x SuSE Linux 13.1-RELEASE x
x SuSE Linux 13.1-RELEASEx
curl_multi_get_handles(3)           libcurl          curl_multi_get_handles(3)

NAME
       curl_multi_get_handles - returns all added easy handles

SYNOPSIS
       #include <curl/curl.h>

       CURL **curl_multi_get_handles(CURLM *multi_handle);

DESCRIPTION
       Returns  an  array  with pointers to all added easy handles. The end of
       the list is marked with a NULL pointer.

       Even if there is not a single easy handle added, this still returns  an
       array but with only a single NULL pointer entry.

       The  returned  array  contains  all the handles that are present at the
       time of the call. As soon as a handle has been removed from or a handle
       has been added to the multi handle after the handle array was returned,
       the two data points are out of sync.

       The order of the easy handles within the array is not guaranteed.

       The returned array must be freed with a call to curl_free(3) after use.

EXAMPLE
         /* init a multi stack */
         multi_handle = curl_multi_init();

         /* add a transfer */
         curl_multi_add_handle(multi_handle, http_handle);

         /* extract all added handles */
         CURL **list = curl_multi_get_handles(multi_handle);

         if(list) {
           /* remove all added handles */
           for(i = 0; list[i]; i++) {
             curl_multi_remove_handle(multi_handle, list[i]);
           }
           curl_free(list);
         }

AVAILABILITY
       Added in 8.4.0

RETURN VALUE
       Returns NULL on failure. Otherwise it returns a pointer to an allocated
       array.

SEE ALSO
       curl_multi_add_handle(3),   curl_multi_cleanup(3),  curl_multi_init(3),
       curl_multi_remove_handle(3)

libcurl 8.4.0                 September 26, 2023     curl_multi_get_handles(3)

Want to link to this manual page? Use this URL:
<
http://star2.abcm.com/cgi-bin/bsdi-man?query=curl_multi_get_handles&sektion=3&manpath=>

home | help