Searched refs:server_res (Results 1 – 3 of 3) sorted by relevance
/external/iperf3/src/ |
D | iperf_tcp.c | 367 struct addrinfo hints, *local_res, *server_res; in iperf_tcp_connect() local 388 if (getaddrinfo(test->server_hostname, portstr, &hints, &server_res) != 0) { in iperf_tcp_connect() 395 if ((s = socket(server_res->ai_family, SOCK_STREAM, 0)) < 0) { in iperf_tcp_connect() 398 freeaddrinfo(server_res); in iperf_tcp_connect() 416 freeaddrinfo(server_res); in iperf_tcp_connect() 429 if (server_res->ai_family == AF_INET) { in iperf_tcp_connect() 437 else if (server_res->ai_family == AF_INET6) { in iperf_tcp_connect() 448 freeaddrinfo(server_res); in iperf_tcp_connect() 457 freeaddrinfo(server_res); in iperf_tcp_connect() 470 freeaddrinfo(server_res); in iperf_tcp_connect() [all …]
|
D | net.c | 118 struct addrinfo hints, *local_res, *server_res; in netdial() local 132 if (getaddrinfo(server, NULL, &hints, &server_res) != 0) in netdial() 135 s = socket(server_res->ai_family, proto, 0); in netdial() 139 freeaddrinfo(server_res); in netdial() 155 freeaddrinfo(server_res); in netdial() 167 if (server_res->ai_family == AF_INET) { in netdial() 175 else if (server_res->ai_family == AF_INET6) { in netdial() 191 freeaddrinfo(server_res); in netdial() 197 ((struct sockaddr_in *) server_res->ai_addr)->sin_port = htons(port); in netdial() 198 …if (timeout_connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen, timeout) <… in netdial() [all …]
|
D | iperf_sctp.c | 263 struct addrinfo hints, *local_res, *server_res; in iperf_sctp_connect() local 279 if (getaddrinfo(test->server_hostname, portstr, &hints, &server_res) != 0) { in iperf_sctp_connect() 286 s = socket(server_res->ai_family, SOCK_STREAM, IPPROTO_SCTP); in iperf_sctp_connect() 290 freeaddrinfo(server_res); in iperf_sctp_connect() 308 freeaddrinfo(server_res); in iperf_sctp_connect() 321 if (server_res->ai_family == AF_INET) { in iperf_sctp_connect() 329 else if (server_res->ai_family == AF_INET6) { in iperf_sctp_connect() 340 freeaddrinfo(server_res); in iperf_sctp_connect() 349 freeaddrinfo(server_res); in iperf_sctp_connect() 361 freeaddrinfo(server_res); in iperf_sctp_connect() [all …]
|