getnameinfo function winsock

int getnameinfo(
  1. Pointer<SOCKADDR> pSockaddr,
  2. int SockaddrLength,
  3. Pointer<Utf8> pNodeBuffer,
  4. int NodeBufferSize,
  5. Pointer<Utf8> pServiceBuffer,
  6. int ServiceBufferSize,
  7. int Flags,
)

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