base/win32.cc
const char* win32_inet_ntop(int af, const void *src,
                            char* dst, socklen_t size) {
  if (!src || !dst) {
    return NULL;
  }
  switch (af) {
    case AF_INET: {
      return inet_ntop_v4(src, dst, size);
    }
    case AF_INET6: {
      return inet_ntop_v6(src, dst, size);
    }
  }
  return NULL;
}
// Implementation of inet_ntop (create a printable representation of an
// ip address). XP doesn't have its own inet_ntop, and
// WSAAddressToString requires both IPv6 to be  installed and for Winsock
// to be initialized.
Implementation of inet_ntop (create a printable representation of an
ip address). XP doesn't have its own inet_ntop, and
WSAAddressToString requires both IPv6 to be  installed and for Winsock
to be initialized.
Implementation of inet_ntop ( create a printable representation of an ip address ) . XP doesn ' t have its own inet_ntop and WSAAddressToString requires both IPv6 to be installed and for Winsock to be initialized .
const char* win32_inet_ntop(int af, const void *src,
                            char* dst, socklen_t size) {
  if (!src || !dst) {
    return NULL;
  }
  switch (af) {
    case AF_INET: {
      return inet_ntop_v4(src, dst, size);
    }
    case AF_INET6: {
      return inet_ntop_v6(src, dst, size);
    }
  }
  return NULL;
}
const char * win32_inet_ntop ( int af , const void * src , char * dst , socklen_t size ) { if ( ! src || ! dst ) { return NULL ; } switch ( af ) { case AF_INET : { return inet_ntop_v4 ( src , dst , size ) ; } case AF_INET6 : { return inet_ntop_v6 ( src , dst , size ) ; } } return NULL ; }
Implementation of inet_ntop (create a printable representation of an
ip address).
Implementation of inet_ntop ( create a printable representation of an ip address ) .