CURLMINFO_XFERS_RUNNING(3)
π CURLMINFO_XFERS_RUNNING(3) π
okay so bestie, this is a page from the Library Functions Manual, and it's about a little constant called CURLMINFO_XFERS_RUNNING β yes that's a whole mouthful, we're gonna get through it together π«Ά
β¨ NAME β¨
CURLMINFO_XFERS_RUNNING β literally just the number of easy handles that are running right now, no cap π
π SYNOPSIS π
#include <curl/curl.h>
CURLMcode curl_multi_get_offt(CURLM *handle, CURLMINFO_XFERS_RUNNING,
curl_off_t *pvalue);
like, that's the whole vibe. you pass in your multi handle, you pass in the info constant, and you hand over a curl_off_t *pvalue so it can drop the answer in for you π
π¦ DESCRIPTION π¦
so CURLMINFO_XFERS_RUNNING is the count of easy handles that are currently running β and by that we mean the ones where the transfer has started but is not finished yet. it's giving "in progress, don't @ me" energy πβ¨
π DEFAULT π
n/a β there's genuinely no default here, bestie. it's not that kind of party π
π§ PROTOCOLS π§
this functionality affects all supported protocols. every single one. all of them. periodt π
πΈ EXAMPLE πΈ
int main(void)
{
CURLM *m = curl_multi_init();
curl_off_t value;
curl_multi_get_offt(m, CURLMINFO_XFERS_RUNNING, &value);
}
look at her go π₯Ή init the multi handle, make a curl_off_t value, then ask for the running count and it lands right in &value. iconic behaviour, no notes.
β AVAILABILITY β
added in curl 8.16.0 β so if you're on something older, she is not there yet, sorry bestie π
π RETURN VALUE π
curl_multi_get_offt(3) returns a CURLMcode β that's your little "did it work or did it flop" indicator π«Ά
CURLM_OK(0) means everything was OK β¨- non-zero means an error occurred π¬ and you should go check out
libcurl-errors(3)for what went wrong
π SEE ALSO π
go read those too, they're her sisters fr fr π
and that's the whole page babes π β brought to you by libcurl, dated 2026-10-25, filed under CURLMINFO_XFERS_RUNNING(3). mwah ππ
π¦ 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