socket_remote6(3)
socket_remote6(3) β get remote IP address of socket π
okay so this is the Library Functions Manual entry, bestie, and it's giving remote-address reveal energy β¨
β¨ NAME β¨
socket_remote6 β get remote IP address of socket.
π¦ SYNTAX π¦
#include <libowfat/socket.h>
int socket_remote6(int s,char ip[16],uint16 *port,uint32 *scope_id);
πΈ DESCRIPTION πΈ
okay so socket_remote6 returns the remote IPv6 address, port and scope ID for the UDP or TCP socket s and writes the IPv6 address to ip, the port to port and the scope ID to scope_id. literally the whole remote-identity package π«Ά
If scope_id is the null pointer, socket_remote6 will discard the scope ID. noted, bestie π
If something goes wrong, socket_remote6 returns -1, setting errno appropriately. red flag behavior, but make it errno π
π SEE ALSO π
that's the socket_remote6(3) page from the Library Functions Manual, bestie β footer said what it said, and we ate π β¨
π¦ 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