2011-03-12 07:14:32 +08:00
|
|
|
.\" **************************************************************************
|
|
|
|
.\" * _ _ ____ _
|
|
|
|
.\" * Project ___| | | | _ \| |
|
|
|
|
.\" * / __| | | | |_) | |
|
|
|
|
.\" * | (__| |_| | _ <| |___
|
|
|
|
.\" * \___|\___/|_| \_\_____|
|
|
|
|
.\" *
|
2023-01-02 20:51:48 +08:00
|
|
|
.\" * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2011-03-12 07:14:32 +08:00
|
|
|
.\" *
|
|
|
|
.\" * This software is licensed as described in the file COPYING, which
|
|
|
|
.\" * you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
.\" * are also available at https://curl.se/docs/copyright.html.
|
2011-03-12 07:14:32 +08:00
|
|
|
.\" *
|
|
|
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
.\" * copies of the Software, and permit persons to whom the Software is
|
|
|
|
.\" * furnished to do so, under the terms of the COPYING file.
|
|
|
|
.\" *
|
|
|
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
.\" * KIND, either express or implied.
|
|
|
|
.\" *
|
|
|
|
.\" * SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
.\" *
|
2011-03-12 07:14:32 +08:00
|
|
|
.\" **************************************************************************
|
2023-04-26 14:58:35 +08:00
|
|
|
.TH curl_multi_remove_handle 3 "6 March 2002" "libcurl" "libcurl"
|
2002-03-04 18:09:48 +08:00
|
|
|
.SH NAME
|
2002-10-15 16:39:30 +08:00
|
|
|
curl_multi_remove_handle - remove an easy handle from a multi session
|
2002-03-04 18:09:48 +08:00
|
|
|
.SH SYNOPSIS
|
2021-11-26 21:20:18 +08:00
|
|
|
.nf
|
2002-03-04 18:09:48 +08:00
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
CURLMcode curl_multi_remove_handle(CURLM *multi_handle, CURL *easy_handle);
|
2021-11-26 21:20:18 +08:00
|
|
|
.fi
|
2002-03-04 18:09:48 +08:00
|
|
|
.SH DESCRIPTION
|
2015-08-06 22:28:05 +08:00
|
|
|
Removes a given \fIeasy_handle\fP from the \fImulti_handle\fP. This will make
|
2014-10-21 16:26:40 +08:00
|
|
|
the specified easy handle be removed from this multi handle's control.
|
2002-03-06 23:01:45 +08:00
|
|
|
|
|
|
|
When the easy handle has been removed from a multi stack, it is again
|
2014-10-21 16:26:40 +08:00
|
|
|
perfectly legal to invoke \fIcurl_easy_perform(3)\fP on this easy handle.
|
2003-03-11 04:43:59 +08:00
|
|
|
|
2014-10-21 16:26:40 +08:00
|
|
|
Removing an easy handle while being used is perfectly legal and will
|
|
|
|
effectively halt the transfer in progress involving that easy handle. All
|
|
|
|
other easy handles and transfers will remain unaffected.
|
2019-02-19 18:22:29 +08:00
|
|
|
|
|
|
|
It is fine to remove a handle at any time during a transfer, just not from
|
|
|
|
within any libcurl callback function.
|
2021-10-25 14:54:08 +08:00
|
|
|
.SH EXAMPLE
|
|
|
|
.nf
|
|
|
|
/* 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 */
|
2021-11-05 06:48:23 +08:00
|
|
|
fprintf(stderr, "Transfer completed\\n");
|
2021-10-25 14:54:08 +08:00
|
|
|
curl_multi_remove_handle(multi_handle, msg->easy_handle);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.fi
|
|
|
|
.SH AVAILABILITY
|
|
|
|
Added in 7.9.6
|
2002-03-04 18:09:48 +08:00
|
|
|
.SH RETURN VALUE
|
|
|
|
CURLMcode type, general libcurl multi interface error code.
|
|
|
|
.SH "SEE ALSO"
|
2014-10-21 16:26:40 +08:00
|
|
|
.BR curl_multi_cleanup "(3)," curl_multi_init "(3), "
|
|
|
|
.BR curl_multi_add_handle "(3) "
|