Lines Matching refs:ctrl_sck
140 return ipt->ctrl_sck; in iperf_get_control_socket()
393 iperf_set_control_socket(struct iperf_test *ipt, int ctrl_sck) in iperf_set_control_socket() argument
395 ipt->ctrl_sck = ctrl_sck; in iperf_set_control_socket()
813 getpeername(test->ctrl_sck, (struct sockaddr *) &sa, &len); in iperf_on_connect()
814 if (getsockdomain(test->ctrl_sck) == AF_INET) { in iperf_on_connect()
1506 if (Nwrite(test->ctrl_sck, (char*) &state, sizeof(state), Ptcp) < 0) { in iperf_set_send_state()
1769 if (Nwrite(test->ctrl_sck, (char*) &err, sizeof(err), Ptcp) < 0) { in iperf_exchange_parameters()
1781 if (Nwrite(test->ctrl_sck, (char*) &err, sizeof(err), Ptcp) < 0) { in iperf_exchange_parameters()
1786 if (Nwrite(test->ctrl_sck, (char*) &err, sizeof(err), Ptcp) < 0) { in iperf_exchange_parameters()
1917 if (JSON_write(test->ctrl_sck, j) < 0) { in send_parameters()
1935 j = JSON_read(test->ctrl_sck); in get_parameters()
2113 if (r == 0 && JSON_write(test->ctrl_sck, j) < 0) { in send_results()
2153 j = JSON_read(test->ctrl_sck); in get_results()
2488 testp->ctrl_sck = -1; in iperf_defaults()
2764 test->ctrl_sck = -1; in iperf_reset_test()
4106 if (test->ctrl_sck >= 0) { in iperf_got_sigend()
4108 (void) Nwrite(test->ctrl_sck, (char*) &test->state, sizeof(signed char), Ptcp); in iperf_got_sigend()