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

πŸ’– 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 s is a socket and a connection is established on it β†’ it returns 1 πŸ’…
  • 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 πŸŒˆπŸ’–