NET_Server(3type)
π NET_Server(3type) π
okay bestie, welcome to NET_Server β the receiving end of a stream connection, fr fr. it's a whole datatype from SDL_net3 and she's lowkey iconic, so let's get into it π«Ά
β¨ NAME β¨
NET_Server β the receiving end of a stream connection. that's it, that's the girl π
πΈ SYNOPSIS πΈ
#include <SDL3_net/SDL_net.h>
typedef struct NET_Server NET_Server;
π¦ DESCRIPTION π¦
so. this is an opaque datatype, which means the app is supposed to treat it like a handle and nothing more. no peeking inside, no touching the internals, just hold it and vibe π
internally? this is what BSD sockets calls a "listen socket". the way it works is: clients attempt to connect to a server, and if the server accepts the connection, it will provide the app with a stream socket to send and receive data over that connection. like a little friendship bracelet handshake, but for data β¨
π AVAILABILITY π
this datatype has been available since SDL_net 3.0.0. she's been here, she's been thriving, no cap π
π SEE ALSO π
NET_CreateServer(3)β go make one, bestie, you got this π₯
and that's the whole page!! this one came straight from SDL_net, running SDL_net 3.2.0, and honestly? she ate. mwah π β π§
π¦ 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