Searched refs:server_res (Results 1 – 3 of 3) sorted by relevance
/external/iperf3/src/ |
D | iperf_tcp.c | 368 struct addrinfo hints, *local_res, *server_res; in iperf_tcp_connect() local 389 if ((gerror = getaddrinfo(test->server_hostname, portstr, &hints, &server_res)) != 0) { in iperf_tcp_connect() 396 if ((s = socket(server_res->ai_family, SOCK_STREAM, 0)) < 0) { in iperf_tcp_connect() 399 freeaddrinfo(server_res); in iperf_tcp_connect() 417 freeaddrinfo(server_res); in iperf_tcp_connect() 430 if (server_res->ai_family == AF_INET) { in iperf_tcp_connect() 438 else if (server_res->ai_family == AF_INET6) { in iperf_tcp_connect() 449 freeaddrinfo(server_res); in iperf_tcp_connect() 458 freeaddrinfo(server_res); in iperf_tcp_connect() 471 freeaddrinfo(server_res); in iperf_tcp_connect() [all …]
|
D | iperf_sctp.c | 287 struct addrinfo hints, *local_res, *server_res; in iperf_sctp_connect() local 303 if ((gerror = getaddrinfo(test->server_hostname, portstr, &hints, &server_res)) != 0) { in iperf_sctp_connect() 310 s = socket(server_res->ai_family, SOCK_STREAM, IPPROTO_SCTP); in iperf_sctp_connect() 314 freeaddrinfo(server_res); in iperf_sctp_connect() 324 freeaddrinfo(server_res); in iperf_sctp_connect() 332 freeaddrinfo(server_res); in iperf_sctp_connect() 352 freeaddrinfo(server_res); in iperf_sctp_connect() 365 if (server_res->ai_family == AF_INET) { in iperf_sctp_connect() 373 else if (server_res->ai_family == AF_INET6) { in iperf_sctp_connect() 384 freeaddrinfo(server_res); in iperf_sctp_connect() [all …]
|
D | net.c | 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() [all …]
|