SYSDECODE_SOCKET_PROTOCOL(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’– NAME πŸ’–

sysdecode_socket_protocol β€” lookup name of socket protocol

πŸ“š LIBRARY πŸ“š

library β€œlibsysdecode” 🫢

✨ SYNOPSIS ✨

#include <sysdecode.h>

const char *
sysdecode_socket_protocol(int domain, int protocol);

🌸 DESCRIPTION 🌸

okay so bestie, sysdecode_socket_protocol() returns a text description of the protocol that you pass in the protocol argument to socket(2). literally its whole job is giving you the name-ish text for that protocol πŸ’…

and the way it works is: sysdecode_socket_protocol() takes the protocol and the domain so it can uniquely identify the protocol. both of those details matter, no cap πŸ”₯


source/version check, bestie: this is the Debian page for sysdecode_socket_protocol(3), dated May 25, 2017 β€” iconic, historic, and now fully vibe-checked πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from