VMS Help — TCPIP Services, Programming Interfaces, Socket API Functions, getpeername() Description
This function returns the name of the peer connected to the
specified socket descriptor.
Related Functions
See also bind(), socket(), and getsockname().