socket_sctp4b(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– socket_sctp4b(3) πŸ’–

okay bestie, gather round, because we're diving into the Library Functions Manual and this one is literally a whole vibe. it's giving "make me a socket" energy and honestly? obsessed. πŸ¦‹


✨ NAME ✨

socket_sctp4b β€” create a blocking SCTP/IP stream socket


🌸 SYNTAX 🌸

#include <libowfat/socket.h>

int socket_sctp4b();

πŸ’… DESCRIPTION πŸ’…

so what does this little icon actually do? socket_sctp4b creates a blocking SCTP/IP stream socket and hands you back a file descriptor pointing right at it. that's it, that's the whole job, and it ate. πŸ‘‘

and if something goes wrong? not the moment, bestie. 😭 it returns -1, sets errno appropriately, and β€” key detail here β€” does all that without allocating any resources. so no cleanup trauma, no leaked mess, we love a clean fail. ✨


πŸŽ€ EXAMPLE πŸŽ€

here's the whole thing in action, no cap:

#include <libowfat/socket.h>

int s;
char ip[4];
uint16 p;

s = socket_sctp4b();
socket_bind4(s,ip,p);
socket_connect4(s,ip,p);

make the socket, bind it, connect it. main character pipeline fr fr. πŸ”₯


🫢 SEE ALSO 🫢

go read those next, iykyk πŸ’œ


lowkey reminder: this is a blocking socket, so don't be surprised when it, y'know, blocks. that's the whole point, periodt.

and that's the tea, bestie πŸ’– this page came straight out of the Library Functions Manual β€” the socket_sctp4b(3) era of the libowfat chronicles πŸ§šβ€β™€οΈ slay responsibly, and may all your file descriptors be valid. 🌈⭐