Lines Matching refs:server_res
126 struct addrinfo hints, *local_res, *server_res; in netdial() local
140 if ((gerror = getaddrinfo(server, NULL, &hints, &server_res)) != 0) in netdial()
143 s = socket(server_res->ai_family, proto, 0); in netdial()
147 freeaddrinfo(server_res); in netdial()
163 freeaddrinfo(server_res); in netdial()
175 if (server_res->ai_family == AF_INET) { in netdial()
183 else if (server_res->ai_family == AF_INET6) { in netdial()
199 freeaddrinfo(server_res); in netdial()
205 ((struct sockaddr_in *) server_res->ai_addr)->sin_port = htons(port); in netdial()
206 …if (timeout_connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen, timeout) <… in netdial()
209 freeaddrinfo(server_res); in netdial()
214 freeaddrinfo(server_res); in netdial()