base/win32.cc
int win32_inet_pton(int af, const char* src, void* dst) {
  if (!src || !dst) {
    return 0;
  }
  if (af == AF_INET) {
    return inet_pton_v4(src, dst);
  } else if (af == AF_INET6) {
    return inet_pton_v6(src, dst);
  }
  return -1;
}
// As above, but for inet_pton. Implements inet_pton for v4 and v6.
// Note that our inet_ntop will output normal 'dotted' v4 addresses only.
As above, but for inet_pton. Implements inet_pton for v4 and v6.
Note that our inet_ntop will output normal 'dotted' v4 addresses only.
As above but for inet_pton . Implements inet_pton for v4 and v6 . Note that our inet_ntop will output normal ' dotted ' v4 addresses only .
int win32_inet_pton(int af, const char* src, void* dst) {
  if (!src || !dst) {
    return 0;
  }
  if (af == AF_INET) {
    return inet_pton_v4(src, dst);
  } else if (af == AF_INET6) {
    return inet_pton_v6(src, dst);
  }
  return -1;
}
int win32_inet_pton ( int af , const char * src , void * dst ) { if ( ! src || ! dst ) { return 0 ; } if ( af == AF_INET ) { return inet_pton_v4 ( src , dst ) ; } else if ( af == AF_INET6 ) { return inet_pton_v6 ( src , dst ) ; } return -1 ; }
As above, but for inet_pton.
As above but for inet_pton .