SOCKETADDR(2X) — Unix Programmer’s Manual
NAME
socketaddr − return address associated with a socket
SYNOPSIS
#include <sys/socket.h> socketaddr(s, addr)
int s;
struct sockaddr ∗addr;
DESCRIPTION
The address associated with the socket s is returned in addr. If s is not a socket, −1 is returned and an appropriate errno is returned.
SEE ALSO
socket (2x)
BUGS
This call is provisional, and will exist in a slightly different form in 4.2bsd.
7th Edition — 3/17/82