gnurl_multi_setopt(3)
π gnurl_multi_setopt(3) β libgnurl Manual π
okay bestie, welcome to the libgnurl Manual, page gnurl_multi_setopt(3). grab your iced coffee π§ because we're talking about setting options on a curl multi handle, and it's lowkey iconic.
π NAME π
curl_multi_setopt β set options for a curl multi handle. that's the whole vibe. no cap. π
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLMcode curl_multi_setopt(CURLM * multi_handle, CURLMoption option,
param);
π¦ DESCRIPTION π¦
so curl_multi_setopt(3) is literally how you tell a libcurl multi handle how to behave. by using the appropriate options to curl_multi_setopt(3), you can change libcurl's behaviour when using that multi handle. slay.
all options are set with the option followed by the parameter param. that param can be a long, a function pointer, an object pointer, or a curl_off_t type, depending on what the specific option expects. iykyk π«Ά
read this manual carefully, bestie, because bad input values may cause libcurl to behave badly! π and the rule is: you can only set one option in each function call. one. option. per. call. periodt. π
πΈ OPTIONS πΈ
each of these has its own main-character manpage, so tap the reference:
CURLMOPT_CHUNK_LENGTH_PENALTY_SIZEβ SeeCURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3)CURLMOPT_CONTENT_LENGTH_PENALTY_SIZEβ SeeCURLMOPT_CONTENT_LENGTH_PENALTY_SIZE(3)CURLMOPT_MAX_HOST_CONNECTIONSβ SeeCURLMOPT_MAX_HOST_CONNECTIONS(3)CURLMOPT_MAX_PIPELINE_LENGTHβ SeeCURLMOPT_MAX_PIPELINE_LENGTH(3)CURLMOPT_MAX_TOTAL_CONNECTIONSβ SeeCURLMOPT_MAX_TOTAL_CONNECTIONS(3)CURLMOPT_MAXCONNECTSβ SeeCURLMOPT_MAXCONNECTS(3)CURLMOPT_PIPELININGβ SeeCURLMOPT_PIPELINING(3)CURLMOPT_PIPELINING_SITE_BLβ SeeCURLMOPT_PIPELINING_SITE_BL(3)CURLMOPT_PIPELINING_SERVER_BLβ SeeCURLMOPT_PIPELINING_SERVER_BL(3)CURLMOPT_PUSHFUNCTIONβ SeeCURLMOPT_PUSHFUNCTION(3)CURLMOPT_PUSHDATAβ SeeCURLMOPT_PUSHDATA(3)CURLMOPT_SOCKETFUNCTIONβ SeeCURLMOPT_SOCKETFUNCTION(3)CURLMOPT_SOCKETDATAβ SeeCURLMOPT_SOCKETDATA(3)CURLMOPT_TIMERFUNCTIONβ SeeCURLMOPT_TIMERFUNCTION(3)CURLMOPT_TIMERDATAβ SeeCURLMOPT_TIMERDATA(3)CURLMOPT_MAX_CONCURRENT_STREAMSβ SeeCURLMOPT_MAX_CONCURRENT_STREAMS(3)
π₯ RETURNS π₯
she returns the standard CURLMcode for multi interface error codes. heads up though: it returns a CURLM_UNKNOWN_OPTION if you try setting an option that this version of libcurl doesn't know of. so don't try to make unknown-option fetch happen π.
β AVAILABILITY β
this function was added in libcurl 7.15.4. yes bestie, she's been around. π«Ά
π SEE ALSO π
made with libcurl 7.39.0 Β· dated 4 Nov 2014 Β· this page is gnurl_multi_setopt(3) β mwah π
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms