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
This commit is contained in:
Stefan Eissing 2025-07-23 09:18:59 +02:00
parent 4108d11008
commit 923055aed6
No known key found for this signature in database
14 changed files with 177 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