socket_sctp6(3)
π socket_sctp6 β bestie, let's build a socket π
okay so real talk, this page lives in the Library Functions Manual section 3, and it's called socket_sctp6(3). it's giving "networking but make it IPv6 and SCTP". let's get into it π¦
β¨ NAME β¨
socket_sctp6 β bestie it literally creates a non-blocking IPv6 SCTP/IP stream socket. that's the whole vibe. π
β¨ SYNTAX β¨
#include <libowfat/socket.h>
int socket_sctp6();
that's it. that's the whole incantation. no arguments, no drama, just a function call waiting to happen π
β¨ DESCRIPTION β¨
so socket_sctp6 creates a non-blocking IPv6 SCTP/IP stream socket, and hands you back a file descriptor pointing right at that socket. it's like a little key to your brand new socket, and you're the main character holding it π
and if something goes wrong? not to worry, she's honest about it: socket_sctp6 returns -1, sets errno appropriately, and doesn't allocate any resources while doing it. so like, no leaked mess, no half-built socket haunting you. clean exit, no crumbs, we love a graceful failure π
β¨ EXAMPLE β¨
here's how you'd actually use her, fr fr:
#include <libowfat/socket.h>
int s;
char ip[16];
uint16 p;
s = socket_sctp6();
socket_bind6(s,ip,p);
socket_connect6(s,ip,p,0);
look at that flow: grab the socket, bind it to ip and p, then connect it right back out on ip, p, with that trailing 0. chef's kiss, no notes ππ₯
β¨ SEE ALSO β¨
go read the siblings, they're iconic too:
ngl if you got this far you're lowkey a Unix girlie now. proud of you. π«Ά
okay that's the whole page bestie, no cap, every detail intact. this was the socket_sctp6(3) page from the Library Functions Manual β footer says socket_sctp6(3), same name, same energy, same little corner of the manual. mwah, go write some sockets πβ¨π
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms