inet_ntop function winsock

Pointer<Utf8> inet_ntop(
  1. int Family,
  2. Pointer<NativeType> pAddr,
  3. Pointer<Utf8> pStringBuf,
  4. int StringBufSize,
)

The inet_ntop function converts an IPv4 or IPv6 Internet network address into a string in Internet standard format.

PCSTR WSAAPI inet_ntop(
  [in]  INT        Family,
  [in]  const VOID *pAddr,
  [out] PSTR       pStringBuf,
  [in]  size_t     StringBufSize
);

Implementation

Pointer<Utf8> inet_ntop(int Family, Pointer pAddr, Pointer<Utf8> pStringBuf,
        int StringBufSize) =>
    _inet_ntop(Family, pAddr, pStringBuf, StringBufSize);