socket_remote4(3)
πΈ NAME πΈ
socket_remote4 β get remote IP address of socket
β¨ SYNTAX β¨
#include <libowfat/socket.h>
int socket_remote4(int s,char ip[4],uint16 *port);
π DESCRIPTION π
okay so bestie, listen up: socket_remote4 returns the remote IP address and port for the UDP or TCP socket s and writes the IP address to ip and the port to port. like it literally hands you the deets of who's on the other end π
If something goes wrong, socket_remote4 returns -1, setting errno appropriately. so if you see that -1, check errno β it's giving "something went wrong" energy π
π SEE ALSO π
okay that's the whole vibe, bestie β this was socket_remote4(3) from the Library Functions Manual. stay connected, stay iconic, and may your sockets always know who they're talking to π«Άβ¨
π¦ 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