Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
curl_multi_add_handle(3) | Library Functions Manual | curl_multi_add_handle(3) |
NAME
curl_multi_add_handle - add an easy handle to a multi sessionSYNOPSIS
#include <curl/curl.h>
CURLMcode curl_multi_add_handle(CURLM *multi_handle, CURL *easy_handle);
DESCRIPTION
Adds the easy handle to the multi_handle.PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
/* init a multi stack */
CURLM *multi = curl_multi_init();
/* create two easy handles */
CURL *http_handle = curl_easy_init();
CURL *http_handle2 = curl_easy_init();
/* add individual transfers */
curl_multi_add_handle(multi, http_handle);
curl_multi_add_handle(multi, http_handle2);
}
AVAILABILITY
Added in curl 7.9.6RETURN VALUE
CURLMcode type, general libcurl multi interface error code.SEE ALSO
curl_multi_cleanup(3), curl_multi_get_handles(3), curl_multi_init(3), curl_multi_setopt(3), curl_multi_socket_action(3)2024-12-21 | libcurl |