Changed prototype for lookup_connection to use struct addrinfo