getsockname function winsock
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);