socket_sctp6b(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

✨ NAME ✨

socket_sctp6b β€” bestie, this is the one that makes you a blocking IPv6 SCTP/IP stream socket πŸ’–

(also hi, you're in the Library Functions Manual, section 3, and this whole page is about section 3 vibes, ok? 🫢)


🌸 SYNTAX 🌸

#include <libowfat/socket.h>

int socket_sctp6b();

no args, no drama, just vibes πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” socket_sctp6b creates a blocking IPv6 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 πŸ”₯

but listen, bestie, sometimes life is not giving 😭. if something goes wrong, socket_sctp6b returns -1, sets errno appropriately, and β€” this is the important part β€” does it without allocating any resources. so no cleanup, no loose ends, no mess left behind. it literally leaves no crumbs ✨


πŸŽ€ EXAMPLE πŸŽ€

here's how the girlies actually use it πŸ‘‘

#include <libowfat/socket.h>

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

s = socket_sctp6b();
socket_bind6(s,ip,p);
socket_connect6(s,ip,p,0);

πŸ‘‘ SEE ALSO πŸ‘‘

your required reading, no skips πŸ“š


and that's the page, bestie πŸ’œ you just read socket_sctp6b(3), straight out of the Library Functions Manual β€” section 3 forever, periodt πŸŽ€πŸ’–βœ¨