simple program for getaddrinfo