multi: add new information extraction method

Adds `curl_off_t curl_multi_get_offt(CURLM *multi_handle, CURLMinfo_offt
info)` to the multi interface with enums:

* CURLMINFO_XFERS_CURRENT: current number of transfers
* CURLMINFO_XFERS_RUNNING: number of running transfers
* CURLMINFO_XFERS_PENDING: number of pending transfers
* CURLMINFO_XFERS_DONE: number of finished transfers to read
* CURLMINFO_XFERS_ADDED: total number of transfers added, ever

Add documentation for functions and info enums.

Add use in the curl command line tool to replace two static
variables counting the same "from the outside".

refs #17870
Closes #17992
This commit is contained in:
Stefan Eissing 2025-07-23 09:18:59 +02:00 committed by Daniel Stenberg
parent fadc487567
commit 1ad2009ad6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
14 changed files with 203 additions and 18 deletions

View file

@ -132,6 +132,7 @@ curl_multi_timeout
curl_multi_setopt
curl_multi_assign
curl_multi_get_handles
curl_multi_get_offt
curl_pushheader_bynum
curl_pushheader_byname
curl_multi_waitfds