"Fossies" - the Fresh Open Source Software Archive

Member "curl-7.66.0/docs/libcurl/curl_multi_cleanup.3" (11 Sep 2019, 2201 Bytes) of package /linux/www/curl-7.66.0.tar.xz:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even erroneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the latest Fossies "Diffs" side-by-side code changes report for "curl_multi_cleanup.3": 7.65.3_vs_7.66.0.

curl_multi_cleanup

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

NAME

curl_multi_cleanup - close down a multi session

SYNOPSIS

#include <curl/curl.h>

CURLMcode curl_multi_cleanup( CURLM *multi_handle );

DESCRIPTION

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.

RETURN VALUE

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

SEE ALSO

curl_multi_init(3),curl_easy_cleanup(3),curl_easy_init(3)