1curl_multi_add_handle(3) libcurl Manual curl_multi_add_handle(3)
2
3
4
6 curl_multi_add_handle - add an easy handle to a multi session
7
9 #include <curl/curl.h>
10
11 CURLMcode curl_multi_add_handle(CURLM *multi_handle, CURL *easy_han‐
12 dle);
13
15 Adds a standard easy handle to the multi stack. This function call will
16 make this multi_handle control the specified easy_handle.
17
18 When an easy handle has been added to a multi stack, you can not and
19 you must not use curl_easy_perform(3) on that handle!
20
21 If the easy handle is not set to use a shared (CURLOPT_SHARE) or global
22 DNS cache (CURLOPT_DNS_USE_GLOBAL_CACHE), it will be made to use the
23 DNS cache that is shared between all easy handles within the multi han‐
24 dle when curl_multi_add_handle(3) is called.
25
26 The easy handle will remain added until you remove it again with
27 curl_multi_remove_handle(3). You should remove the easy handle from the
28 multi stack before you terminate first the easy handle and then the
29 multi handle:
30
31 1 - curl_multi_remove_handle(3)
32
33 2 - curl_easy_cleanup(3)
34
35 3 - curl_multi_cleanup(3)
36
38 CURLMcode type, general libcurl multi interface error code.
39
41 curl_multi_cleanup(3),curl_multi_init(3)
42
43
44
45libcurl 7.9.5 4 March 2002 curl_multi_add_handle(3)