HomeSort by relevance Sort by last modified time
    Searched refs:server_res (Results 1 - 3 of 3) sorted by null

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

Completed in 1246 milliseconds