• Geoff Garside's avatar
    Use getaddrinfo(3) in anetResolve. #apichange · 071963c8
    Geoff Garside authored
    Change anetResolve() function to use getaddrinfo(3) to resolve hostnames.
    Resolved hostnames are limited to those reachable by the AF_INET address
    family.
    
    API Change: anetResolve requires additional argument.
      additional argument required to specify the length of the character
      buffer the IP address is written to in order to comply with
      inet_ntop(3) function semantics. inet_ntop(3) replaces inet_ntoa(3)
      as it has been designed to be compatible with more address families.
    071963c8
anet.h 2.63 KB