Skip to content
BSD syscall#31

svc · unix #31

getpeername

Returns the remote address connected to a socket.

Prototype

int getpeername(int fdes, caddr_t asa, socklen_t *alen);

Returns: int

Arguments

NameTypeDirDescription
fdesint-
asacaddr_t-
alensocklen_t-

Version history

XNU tagmacOS#
xnu-1456.1.26macOS 10.6 Snow Leopard31
xnu-1486.2.1131
xnu-1504.15.331
xnu-1504.3.1231
xnu-1504.7.431
xnu-1504.9.1731
xnu-1504.9.2631
xnu-1504.9.3731

Notes

No prose documentation yet.