Getaddrinfo
The getaddrinfo
and getnameinfo
functions are part of the POSIX standard application programming interface (API) for converting domain name system (DNS) hostnames and IP addresses between their human-readable text representations and structured binary formats for the operating system's networking API.
Read more about Getaddrinfo.