Searched refs:ctrl_sck (Results 1 – 5 of 5) sorted by relevance
/external/iperf3/src/ |
D | iperf_client_api.c | 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() [all …]
|
D | iperf_server_api.c | 119 if (test->ctrl_sck == -1) { in iperf_accept() 121 test->ctrl_sck = s; in iperf_accept() 122 if (Nread(test->ctrl_sck, test->cookie, COOKIE_SIZE, Ptcp) < 0) { in iperf_accept() 126 FD_SET(test->ctrl_sck, &test->read_set); in iperf_accept() 127 if (test->ctrl_sck > test->max_fd) test->max_fd = test->ctrl_sck; in iperf_accept() 162 if ((rval = Nread(test->ctrl_sck, (char*) &test->state, sizeof(signed char), Ptcp)) <= 0) { in iperf_handle_message_server() 243 close(test->ctrl_sck); in server_timer_proc() 367 if (test->ctrl_sck) { in cleanup_server() 368 close(test->ctrl_sck); in cleanup_server() 490 if (FD_ISSET(test->ctrl_sck, &read_set)) { in iperf_run_server() [all …]
|
D | iperf_api.c | 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() [all …]
|
D | iperf.h | 280 int ctrl_sck; member
|
D | iperf_api.h | 143 void iperf_set_control_socket( struct iperf_test* ipt, int ctrl_sck );
|