Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
curl_multi_remove_handle(3) | libcurl 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 will make the specified easy handle be removed from this multi handle's control.EXAMPLE
/* when an easy handle has completed, remove it */
msg = curl_multi_info_read(multi_handle, &queued);
if(msg) {
if(msg->msg == CURLMSG_DONE) {
/* a transfer ended */
fprintf(stderr, "Transfer completed\n");
curl_multi_remove_handle(multi_handle, msg->easy_handle);
}
}
AVAILABILITY
Added in 7.9.6RETURN VALUE
CURLMcode type, general libcurl multi interface error code.SEE ALSO
curl_multi_cleanup(3),curl_multi_init(3), curl_multi_add_handle(3)May 17, 2022 | libcurl 7.84.0 |