getnameinfo function winsock
The getnameinfo function provides protocol-independent name resolution from an address to an ANSI host name and from a port number to the ANSI service name.
INT WSAAPI getnameinfo(
const SOCKADDR *pSockaddr,
socklen_t SockaddrLength,
PCHAR pNodeBuffer,
DWORD NodeBufferSize,
PCHAR pServiceBuffer,
DWORD ServiceBufferSize,
INT Flags
);
Implementation
int getnameinfo(
Pointer<SOCKADDR> pSockaddr,
int SockaddrLength,
Pointer<Utf8> pNodeBuffer,
int NodeBufferSize,
Pointer<Utf8> pServiceBuffer,
int ServiceBufferSize,
int Flags) =>
_getnameinfo(pSockaddr, SockaddrLength, pNodeBuffer, NodeBufferSize,
pServiceBuffer, ServiceBufferSize, Flags);