Changing to getaddrinfo style socket setup.