curl_multi_get_offt(3)
π curl_multi_get_offt(3) β the multi-handle tea-spiller β¨
okay hi bestie π«Ά so this is a libcurl manpage, and honestly it's short and sweet β the whole vibe is "imma peek inside your multi handle and tell you a number." no cap, that's it. let's get into it π
β¨ NAME β¨
curl_multi_get_offt β extract information from a multi handle π
πΈ SYNOPSIS πΈ
#include <curl/curl.h>
CURLMcode curl_multi_get_offt(CURLM *multi_handle,
CURLMinfo_offt info,
curl_off_t *pvalue);
π¦ DESCRIPTION π¦
Get the info kept in the multi handle π. Like, you hand it a multi_handle, you tell it which info you're curious about, and it drops the answer into pvalue.
but listen π β if the info is not applicable, this function returns CURLM_UNKNOWN_OPTION. so if you get that back, it's not a skill issue on your end, that info just doesn't apply here π
π OPTIONS π
the following information can be extracted β¨ (this is the menu, bestie β pick one):
CURLMINFO_XFERS_CURRENTβ seeCURLMINFO_XFERS_CURRENT(3)π«CURLMINFO_XFERS_RUNNINGβ seeCURLMINFO_XFERS_RUNNING(3)πββοΈCURLMINFO_XFERS_PENDINGβ seeCURLMINFO_XFERS_PENDING(3)β³CURLMINFO_XFERS_DONEβ seeCURLMINFO_XFERS_DONE(3)βCURLMINFO_XFERS_ADDEDβ seeCURLMINFO_XFERS_ADDED(3)β
π PROTOCOLS π
This functionality affects all supported protocols β every single one, no gatekeeping π
π EXAMPLE π
int main(void)
{
/* init a multi stack */
CURLM *multi = curl_multi_init();
CURL *curl = curl_easy_init();
curl_off_t n;
if(curl) {
/* add the transfer */
curl_multi_add_handle(multi, curl);
curl_multi_get_offt(multi, CURLMINFO_XFERS_ADDED, &n);
/* on successful add, n is 1 */
}
}
see how clean that is?? n comes back as 1 on a successful add, like slay π
β AVAILABILITY β
Added in curl 8.16.0 β so if you're on something older, this icon is simply not available to you yet, my condolences π
π RETURN VALUE π
This function returns a CURLMcode indicating success or error β¨
CURLM_OK (0) means everything was OK π₯³ β non-zero means an error occurred, see libcurl-errors(3) for the whole lore π
π§ SEE ALSO π§
bestie reminder π
: CURLM_UNKNOWN_OPTION is a real answer, not a bug. if the info isn't applicable, that's just what you get, fr fr π«Ά
k that's the whole page!! mwah π this lil cutie is from libcurl, dated 2026-10-25 β go forth and get your offt values, you absolute main character πβ¨
π¦ 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