NET_StreamSocket(3type)

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

okay bestie, welcome to the NET_StreamSocket(3type) page β€” this one lives in the SDL_net3 DATATYPES section, and it's literally all about NET_StreamSocket. πŸ’–

🌸 NAME 🌸

  • NET_StreamSocket β€” an object that represents a streaming connection to another system. πŸ¦‹

✨ SYNOPSIS ✨

#include <SDL3_net/SDL_net.h>

typedef struct NET_StreamSocket NET_StreamSocket;

πŸ’… DESCRIPTION πŸ’…

This is meant to be a reliable, stream-oriented connection, such as TCP. No cap, that's the vibe: dependable, stream-y, TCP-coded. 🌈

Each NET_StreamSocket represents a single connection between systems. One socket = one connection, periodt. πŸ’«

Usually, a client app will have one connection to a server app on a different computer, and the server app might have many connections from different clients. So the client is giving one main-character connection, while the server is out here juggling a whole group chat of them. πŸ‘‘

Each of these connections communicate over a separate stream socket. Separate socket, separate stream, separate little lane. πŸŽ€

πŸ¦‹ AVAILABILITY πŸ¦‹

This datatype is available since SDL_net 3.0.0. It's been around, bestie. ✨

πŸŽ€ SEE ALSO πŸŽ€


sign-off time: this page is from SDL_net 3.2.0, filed under NET_StreamSocket(3type), and the footer didn't give us a date so we're not inventing one. mwah πŸ«ΆπŸ’‹

πŸ“¦ where this page comes from