Lines Matching defs:iperf_test
270 struct iperf_test struct
272 char role; /* 'c' lient or 's' erver */
273 enum iperf_mode mode;
274 int sender_has_retransmits;
275 int other_side_has_retransmits; /* used if mode == BIDIRECTIONAL */
276 struct protocol *protocol;
277 signed char state;
278 char *server_hostname; /* -c option */
279 char *tmp_template;
280 char *bind_address; /* first -B option */
281 char *bind_dev; /* bind to network device */
283 int bind_port; /* --cport option */
284 int server_port;
285 int omit; /* duration of omit period (-O flag) */
286 int duration; /* total duration of test (-t flag) */
287 char *diskfile_name; /* -F option */
288 int affinity, server_affinity; /* -A option */
290 cpuset_t cpumask;
292 char *title; /* -T option */
293 char *extra_data; /* --extra-data */
294 char *congestion; /* -C option */
295 char *congestion_used; /* what was actually used */
296 char *remote_congestion_used; /* what the other side used */
297 char *pidfile; /* -P option */
299 char *logfile; /* --logfile option */
300 FILE *outfile;
302 int ctrl_sck;
303 int listener;
304 int prot_listener;
306 int ctrl_sck_mss; /* MSS for the control channel */
309 char *server_authorized_users;
310 EVP_PKEY *server_rsa_private_key;
311 int server_skew_threshold;
315 int daemon; /* -D option */
316 int one_off; /* -1 option */
317 int no_delay; /* -N option */
318 int reverse; /* -R option */
319 int bidirectional; /* --bidirectional */
343 void (*stats_callback) (struct iperf_test *); argument
344 void (*reporter_callback) (struct iperf_test *); argument
345 Timer *omit_timer;
346 Timer *timer;
347 int done;
348 Timer *stats_timer;
349 Timer *reporter_timer;
351 …ble cpu_util[3]; /* cpu utilization of the test - total, user, system */
352 …util[3]; /* cpu utilization for the remote host/client - total, user, system */
354 int num_streams; /* total streams in the test (-P) */
356 iperf_size_t bytes_sent;
357 iperf_size_t blocks_sent;
381 void (*on_test_start)(struct iperf_test *); argument
382 void (*on_connect)(struct iperf_test *); argument
383 void (*on_test_finish)(struct iperf_test *); argument
386 cJSON *json_top;
387 cJSON *json_start;
388 cJSON *json_connected;
389 cJSON *json_intervals;
390 cJSON *json_end;
393 char *server_output_text;
394 cJSON *json_server_output;