socket_connected(3)
π socket_connected(3) π
okay bestie, gather round, we're reading a library functions manual page today and honestly? it's a short one, so no excuses, you're gonna understand it fr fr π«Ά
β¨ NAME β¨
socket_connected β is a connection established on a socket? π
πΈ SYNTAX πΈ
#include <libowfat/socket.h>
int socket_connected(int s);
π¦ DESCRIPTION π¦
so here's the tea β β socket_connected peeks at the socket s and tells you the vibe.
- if
sis a socket and a connection is established on it β it returns1π - otherwise β it returns
0π
that's it. that's the whole function. lowkey iconic for how little it does and how much you needed it.
π SEE ALSO π
go read those next, they're the main character energy siblings of this one β¨
mwah π that's the whole page, no notes. this lil cutie lives in the Library Functions Manual and the page signs itself off as socket_connected(3) β so yeah, same name top and bottom, it's giving matching set ππ
π¦ 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