CURLMINFO_XFERS_ADDED(3)

πŸ’… CURLMINFO_XFERS_ADDED(3) β€” the curl_multi_get_offt offt constant, bestie ✨

okay so this is a page from the Library Functions Manual, and it's about CURLMINFO_XFERS_ADDED β€” like, the whole point is counting every single easy handle that ever got added. yes bestie, ever. πŸŽ€


✨ NAME ✨

CURLMINFO_XFERS_ADDED β€” the cumulative number of all easy handles added πŸ’–


🌸 SYNOPSIS 🌸

#include <curl/curl.h>

CURLMcode curl_multi_get_offt(CURLM *handle, CURLMINFO_XFERS_ADDED,
                              curl_off_t *pvalue);

πŸ¦‹ DESCRIPTION πŸ¦‹

So the vibe here is: the cumulative number of all easy handles added to the multi, ever. Not "right now", not "at the moment" β€” ever. It's a running total that just keeps going up like your screen time 😭.

And the way that this includes internal handles added for tasks β€” like resolving via DoH, for example β€” periodt. So those sneaky little internal ones count too, no cap. πŸ‘‘

if you're actually trying to find the current number of easy handles the multi is managing right now, that is NOT this. go use CURLMINFO_XFERS_CURRENT(3) instead, bestie 🫢

πŸ’œ DEFAULT πŸ’œ

n/a

(literally nothing, it's giving "no default needed" πŸ’€)


🌈 PROTOCOLS 🌈

This functionality affects all supported protocols ✨ β€” every single one, we love an inclusive icon.


πŸŽ€ EXAMPLE πŸŽ€

int main(void)
{
  CURLM *m = curl_multi_init();
  curl_off_t value;

  curl_multi_get_offt(m, CURLMINFO_XFERS_ADDED, &value);
}

look at her go πŸ’…


⭐ AVAILABILITY ⭐

Added in curl 8.16.0 β€” so if you're on something older, she is not there yet, sorry πŸ₯²


πŸ”₯ RETURN VALUE πŸ”₯

curl_multi_get_offt(3) returns a CURLMcode indicating success or error.

CURLM_OK (0) means everything was OK 😌. Non-zero means an error occurred β€” go check libcurl-errors(3) for the tea πŸ“.


🌸 SEE ALSO 🌸


and that's the whole page, bestie πŸ’– this iconic little number came to you from libcurl, dated 2026-10-25, and it's filed under CURLMINFO_XFERS_ADDED(3) β€” mwah, mwah, go count some handles 🧚✨

πŸ“¦ where this page comes from