socket_remote6(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_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 πŸ’…βœ¨