Added the getaddrinfo function.