version specific getaddrinfo function with common completion handler