Lines Matching refs:ctrl_sck
237 if ((rval = read(test->ctrl_sck, (char*) &test->state, sizeof(signed char))) <= 0) { in iperf_handle_message_client()
306 if (Nread(test->ctrl_sck, (char*) &err, sizeof(err), Ptcp) < 0) { in iperf_handle_message_client()
311 if (Nread(test->ctrl_sck, (char*) &err, sizeof(err), Ptcp) < 0) { in iperf_handle_message_client()
337 if (test->ctrl_sck < 0) in iperf_connect()
339 …test->ctrl_sck = netdial(test->settings->domain, Ptcp, test->bind_address, 0, test->server_hostnam… in iperf_connect()
340 if (test->ctrl_sck < 0) { in iperf_connect()
345 if (Nwrite(test->ctrl_sck, test->cookie, COOKIE_SIZE, Ptcp) < 0) { in iperf_connect()
350 FD_SET(test->ctrl_sck, &test->read_set); in iperf_connect()
351 if (test->ctrl_sck > test->max_fd) test->max_fd = test->ctrl_sck; in iperf_connect()
357 if (getsockopt(test->ctrl_sck, IPPROTO_TCP, TCP_MAXSEG, &opt, &len) < 0) { in iperf_connect()
440 if (test->ctrl_sck) in iperf_client_end()
441 close(test->ctrl_sck); in iperf_client_end()
498 if (FD_ISSET(test->ctrl_sck, &read_set)) { in iperf_run_client()
502 FD_CLR(test->ctrl_sck, &read_set); in iperf_run_client()