Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
curl_multi_get_handles(3) | Library Functions Manual | curl_multi_get_handles(3) |
NAME
curl_multi_get_handles - return all added easy handlesDESCRIPTION
Returns an array with pointers to all added easy handles. The end of the list is marked with a NULL pointer.PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
/* init a multi stack */
CURLM *multi = curl_multi_init();
CURL *curl = curl_easy_init();
if(curl) {
/* add the transfer */
curl_multi_add_handle(multi, curl);
/* extract all added handles */
CURL **list = curl_multi_get_handles(multi);
if(list) {
int i;
/* remove all added handles */
for(i = 0; list[i]; i++) {
curl_multi_remove_handle(multi, list[i]);
}
curl_free(list);
}
}
}
AVAILABILITY
Added in curl 8.4.0RETURN 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)2024-12-28 | libcurl |