NET_Server(3type)

πŸ“¦
version 3.2.0 Β· 2 versions
, in fedora 43, fedora 44

πŸ’– 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 🌈


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