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_remove_handle(3) | Library Functions Manual | curl_multi_remove_handle(3) |
NAME
curl_multi_remove_handle - remove an easy handle from a multi sessionSYNOPSIS
#include <curl/curl.h>
CURLMcode curl_multi_remove_handle(CURLM *multi_handle, CURL *easy_handle);
DESCRIPTION
Removes a given easy_handle from the multi_handle. This makes the specified easy handle be removed from this multi handle's control.PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
CURLM *multi = curl_multi_init();
int queued = 0;
/* when an easy handle has completed, remove it */
CURLMsg *msg = curl_multi_info_read(multi, &queued);
if(msg) {
if(msg->msg == CURLMSG_DONE) {
/* a transfer ended */
fprintf(stderr, "Transfer completed\n");
curl_multi_remove_handle(multi, msg->easy_handle);
}
}
}
AVAILABILITY
Added in curl 7.9.6RETURN VALUE
CURLMcode type, general libcurl multi interface error code.SEE ALSO
curl_multi_add_handle(3), curl_multi_cleanup(3), curl_multi_init(3)2024-12-21 | libcurl |