getpeername function winsock
The getpeername function retrieves the address of the peer to which a socket is connected.
int getpeername(
SOCKET s,
sockaddr *name,
int *namelen
);
Implementation
int getpeername(int s, Pointer<SOCKADDR> name, Pointer<Int32> namelen) =>
_getpeername(s, name, namelen);