socket_tcp6b(3)
socket_tcp6b(3) π
okay bestie, welcome to the Library Functions Manual β yes that's the whole manual, and yes you're about to be so good at IPv6 sockets. grab a strawberry π and let's go.
β¨ NAME β¨
socket_tcp6b β makes you a blocking IPv6 TCP/IP stream socket, no cap π
β¨ SYNTAX β¨
#include <libowfat/socket.h>
int socket_tcp6b();
like it literally takes zero arguments. she's low maintenance fr fr π
β¨ DESCRIPTION β¨
so socket_tcp6b creates a blocking IPv6 TCP/IP stream socket and hands you back a file descriptor pointing right at it. that's it, that's the whole job, and she ate π
but listen β if something goes wrong, socket_tcp6b returns -1 and sets errno appropriately. and the cute part? it does that without allocating any resources. no leaked fds, no mess, just a clean little L. we love an honest failure πβ¨
β¨ EXAMPLE β¨
here's the vibe, copy-paste energy only:
#include <libowfat/socket.h>
int s;
char ip[16];
uint16 p;
s = socket_tcp6b();
socket_bind6(s,ip,p);
socket_connect6(s,ip,p,0);
bind first, connect after β the order is giving main character energy and honestly? correct π¦
β¨ SEE ALSO β¨
go read those too, iykyk π
real talk bestie:-1means check yourerrno, don't just stare at it π
okay that's the whole page, you're literally an IPv6 girlie now π
signing off from the Library Functions Manual β this was socket_tcp6b(3), mwah, take care of her π«ΆπΈ
π¦ 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