socket_sctp4b(3)
π 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. πβ
π¦ 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