gnurl_multi_setopt(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸ’… 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:

πŸ”₯ 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