getpeername()

Description

Get the address of the peer to which a socket is connected.

#include <winsock.h>

int PASCAL FAR getpeername(SOCKET s, struct sockaddr FAR * name, int FAR * namelen);