MCPcopy Create free account
hub / github.com/esnet/iperf / iperf_set_send_state

Function iperf_set_send_state

src/iperf_api.c:2053–2064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2051}
2052
2053int
2054iperf_set_send_state(struct iperf_test *test, signed char state)
2055{
2056 if (test->ctrl_sck >= 0) {
2057 iperf_set_test_state(test, state);
2058 if (Nwrite(test->ctrl_sck, (char*) &state, sizeof(state), Ptcp) < 0) {
2059 i_errno = IESENDMESSAGE;
2060 return -1;
2061 }
2062 }
2063 return 0;
2064}
2065
2066void
2067iperf_check_throttle(struct iperf_stream *sp, struct iperf_time *nowP)

Callers 8

iperf_client_endFunction · 0.85
iperf_run_clientFunction · 0.85
iperf_acceptFunction · 0.85
server_timer_procFunction · 0.85
cleanup_serverFunction · 0.85
iperf_run_serverFunction · 0.85

Calls 2

iperf_set_test_stateFunction · 0.85
NwriteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…