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_cleanup(3) | Library Functions Manual | curl_multi_cleanup(3) |
NAME
curl_multi_cleanup - close down a multi sessionDESCRIPTION
This function is the opposite of curl_multi_init(3). 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:PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
CURLM *multi = curl_multi_init();
/* when the multi transfer is done ... */
/* remove all easy handles, then: */
curl_multi_cleanup(multi);
}
AVAILABILITY
Added in curl 7.9.6RETURN VALUE
CURLMcode type, general libcurl multi interface error code. On success, CURLM_OK is returned.SEE ALSO
curl_easy_cleanup(3), curl_easy_init(3), curl_multi_get_handles(3), curl_multi_init(3)2024-11-21 | libcurl |