socket_local4(3)
πΈ NAME πΈ
okay so bestie, this is socket_local4(3) from the Library Functions Manual π and it's literally the "get local IP address of socket" girlie. no cap.
socket_local4 β get local IP address of socket β¨
π¦ SYNTAX π¦
#include <libowfat/socket.h>
int socket_local4(int s,char ip[4],uint16 *port);
π DESCRIPTION π
socket_local4 returns the local IP address and port for the UDP or TCP socket s and writes the IP address to ip and the port to port. it's giving "where am I actually coming from?" energy and honestly same π«Ά
If something goes wrong, socket_local4 returns -1, setting errno appropriately. so if it flops, the error tea is in errno, periodt π
π SEE ALSO π
mwah π that's the whole page β socket_local4(3), Library Functions Manual. stay local, stay iconic, bestie π
π¦
π¦ 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