getpeername function winsock

int getpeername(
  1. int s,
  2. Pointer<SOCKADDR> name,
  3. Pointer<Int32> namelen
)

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);