getsockname function winsock

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

The getsockname function retrieves the local name for a socket.

int getsockname(
  SOCKET   s,
  sockaddr *name,
  int      *namelen
);

Implementation

int getsockname(int s, Pointer<SOCKADDR> name, Pointer<Int32> namelen) =>
    _getsockname(s, name, namelen);