NET_Init(3)
π NET_Init π
okay bestie, so this is a page from the SDL_net3 FUNCTIONS section, and it's literally the first thing you ever touch in the SDL_net library. main character energy, no cap. π
β¨ NAME β¨
NET_Init β the one that boots up the SDL_net library. like turning the lights on before the party. πͺ©
πΈ SYNOPSIS πΈ
#include <SDL3_net/SDL_net.h>
bool NET_Init(void);
that's it. no args. she takes nothing and gives you everything. π
π¦ DESCRIPTION π¦
okay so listen. you must call this successfully once before you can use (almost) any other SDL_net function. like, this is the vibe check every other function is waiting on. if you skip it, don't come crying to me. π
but here's the slay part: it's totally safe to call this multiple times. the library is smart like that β it'll only actually initialize once, and it won't deinitialize until NET_Quit() has been called a matching number of times. so it's counting, bestie. it's keeping receipts. π§Ύβ¨
and those extra init attempts? they just report success. no drama, no errors, just vibes. π«Ά
π RETURN VALUE π
trueβ success, we're so back β¨falseβ error, it's giving tragedy π
if you get false, call SDL_GetError() for the details. she'll tell you what went wrong, fr fr.
π§ THREAD SAFETY π§
it is safe to call this function from any thread. go off, multithreaded icon. π
β AVAILABILITY β
this function has been available since SDL_net 3.0.0. she's been here. she's a legend. π
π SEE ALSO π
NET_Quit(3)β the other half of the situationship, iykyk π
and that's the whole page, bestie!! this manual came to you from SDL_net, version SDL_net 3.2.0 β so go forth, call NET_Init, and slay. periodt. π
β¨π¦π
π¦ where this page comes from
- fedora 43: SDL3_net-devel 3.2.0-2.fc43 Β· Zlib
- fedora 43: SDL3_net-devel 3.2.0-2.fc43 Β· Zlib
- fedora 44: SDL3_net-devel 3.2.0-2.fc44 Β· Zlib
- fedora 44: SDL3_net-devel 3.2.0-2.fc44 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms