GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
curl_multi_cleanup(3) libcurl Manual curl_multi_cleanup(3)

curl_multi_cleanup - close down a multi session

#include <curl/curl.h>
CURLMcode curl_multi_cleanup(CURLM *multi_handle);

Cleans up and removes a whole multi stack. It does not free or touch any individual easy handles in any way - they still need to be closed individually, using the usual curl_easy_cleanup(3) way. The order of cleaning up should be:

1 - curl_multi_remove_handle(3) before any easy handles are cleaned up

2 - curl_easy_cleanup(3) can now be called independently since the easy handle is no longer connected to the multi handle

3 - curl_multi_cleanup(3) should be called when all easy handles are removed

Passing in a NULL pointer in multi_handle will make this function return CURLM_BAD_HANDLE immediately with no other action.

 /* when the multi transfer is done ... */
 /* remove all easy handles, then: */
 curl_multi_cleanup(multi_handle);

Added in 7.9.6

CURLMcode type, general libcurl multi interface error code. On success, CURLM_OK is returned.

curl_multi_init(3),curl_easy_cleanup(3),curl_easy_init(3)
November 26, 2021 libcurl 7.83.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.