gnurl_multi_init(3)

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

okay so welcome to the libgnurl Manual, bestie β€” today’s main character is gnurl_multi_init(3) and the vibe is β€œwe’re making a multi handle” πŸ’…βœ¨

🌸 NAME 🌸

curl_multi_init - create a multi handle πŸŽ€

and yes, the page is gnurl_multi_init(3) while the NAME line says curl_multi_init; that’s just how it is, iykyk 😌

✨ SYNOPSIS ✨

#include <gnurl/curl.h>

CURLM *curl_multi_init( );

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this function returns a CURLM handle, and you’re gonna use it as input to all the other multi-functions β€” sometimes people call it a multi handle in some places in the documentation, so don’t be confused, it’s the same bestie 🫢

This init call MUST have a corresponding call to curl_multi_cleanup(3) when the operation is complete. Like, not optional, not β€œmaybe later,” not β€œI’ll do it tomorrow” β€” MUST πŸ’€

🌈 RETURN VALUE 🌈

If this function returns NULL, something went wrong and you cannot use the other curl functions. That’s the whole mood: NULL = nope, can’t use the other curl functions 😭

πŸ’œ SEE ALSO πŸ’œ

The whole squad is literally curl_multi_cleanup(3),curl_global_init(3),curl_easy_init(3) β€” go give them a read, bestie πŸ“


later bestie, this page is from libcurl 7.9.5, dated 1 March 2002, and it’s all about gnurl_multi_init(3) πŸ’–βœ¨

πŸ“¦ where this page comes from