but the following call: Code: status = getaddrinfo("www.google.com", NULL, &hints, &servinfo); returns a Name or service unknown error code.
status = getaddrinfo("www.google.com", NULL, &hints, &servinfo);