1curl_multi_cleanup(3) libcurl Manual curl_multi_cleanup(3)
2
3
4
6 curl_multi_cleanup - close down a multi session
7
9 #include <curl/curl.h>
10
11 CURLMcode curl_multi_cleanup( CURLM *multi_handle );
12
14 Cleans up and removes a whole multi stack. It does not free or touch
15 any individual easy handles in any way - they still need to be closed
16 individually, using the usual curl_easy_cleanup(3) way. The order of
17 cleaning up should be:
18
19 1 - curl_multi_remove_handle(3) before any easy handles are cleaned up
20
21 2 - curl_easy_cleanup(3) can now be called independently since the easy
22 handle is no longer connected to the multi handle
23
24 3 - curl_multi_cleanup(3) should be called when all easy handles are
25 removed
26
27 Passing in a NULL pointer in multi_handle will make this function
28 return CURLM_BAD_HANDLE immediately with no other action.
29
31 CURLMcode type, general libcurl multi interface error code. On success,
32 CURLM_OK is returned.
33
35 curl_multi_init(3),curl_easy_cleanup(3),curl_easy_init(3)
36
37
38
39libcurl 7.66.0 August 09, 2018 curl_multi_cleanup(3)