CURLMINFO_XFERS_CURRENT(3)
π CURLMINFO_XFERS_CURRENT(3) π
okay so real quick bestie β this is a page from the Library Functions Manual, and it's all about CURLMINFO_XFERS_CURRENT, aka "how many easy handles are currently chillin' in my multi handle". let's get into it π«Ά
β¨ NAME β¨
CURLMINFO_XFERS_CURRENT β the number of easy handles that are currently added, fr fr
π¦ SYNOPSIS π¦
#include <curl/curl.h>
CURLMcode curl_multi_get_offt(CURLM *handle, CURLMINFO_XFERS_CURRENT,
curl_off_t *pvalue);
πΈ DESCRIPTION πΈ
So this one returns the number of easy handles that are currently added to the multi handle. Like, right now. Present tense. main character energy β¨
- It does not count handles that have already been removed β those are gone, bestie, we don't talk about them π
- It does count internal handles that get added for tasks (like resolving via DoH, for example). yes, the behind-the-scenes ones count too π
If you want the total number of easy handles ever added to the multi, that's a different vibe entirely β go check CURLMINFO_XFERS_ADDED(3) π
π DEFAULT π
n/a
like, there's literally nothing to default to here π
π PROTOCOLS π
This functionality affects all supported protocols. every single one. no cap π
β EXAMPLE β
int main(void)
{
CURLM *m = curl_multi_init();
curl_off_t value;
curl_multi_get_offt(m, CURLMINFO_XFERS_CURRENT, &value);
}
look at that. iconic. not a single wasted line π₯
π§ AVAILABILITY π§
Added in curl 8.16.0 β so if you're on anything older, she's not there yet, sorry bestie π
π RETURN VALUE π
curl_multi_get_offt(3) returns a CURLMcode indicating success or error.
CURLM_OK(0) means everything was OK β slay π- non-zero means an error occurred β and you can go look it up in
libcurl-errors(3)to find out what went wrong π
π SEE ALSO π
go read those too, they're the sibling pages and they also ate π
mwah, that's the whole page π«Ά this lil doc is brought to you by libcurl, dated 2026-10-25 β stay hydrated, close your file descriptors, and remember: internal handles count too β¨
π¦ where this page comes from
- alpine 3.23: curl-doc 8.23.0-r0 Β· curl
- alpine 3.24: curl-doc 8.23.0-r0 Β· curl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms