Iperf client arguments data structure.
For forward compatibility this structure should be initialized using MMIPERF_CLIENT_ARGS_DEFAULT. For example:
#define MMIPERF_CLIENT_ARGS_DEFAULT
Initializer for mmiperf_client_args.
Iperf client arguments data structure.
Definition at line 156 of file mmiperf.h.
#include <mmiperf.h>
◆ amount
| int32_t mmiperf_client_args::amount |
If positive specifies how many bytes to transfer; if negative the absolute value specifies the duration of the test in hundredths of seconds.
Definition at line 171 of file mmiperf.h.
◆ packet_size
| uint32_t mmiperf_client_args::packet_size |
Packet size to use.
Only applies to UDP iperf tests. When set to zero, appropriate value of MMIPERF_DEFAULT_UDP_PACKET_SIZE_V4 or MMIPERF_DEFAULT_UDP_PACKET_SIZE_V6 will be used depending on whether the given server_addr is IPv4 or IPv6 address.
Definition at line 168 of file mmiperf.h.
◆ report_arg
| void* mmiperf_client_args::report_arg |
Opaque argument to pass to the report callback.
May be NULL.
Definition at line 175 of file mmiperf.h.
◆ report_fn
Report callback function to invoke on completion/abort.
May be NULL.
Definition at line 173 of file mmiperf.h.
◆ server_addr
IP address of iperf server to communicate with (as a string).
Definition at line 159 of file mmiperf.h.
◆ server_port
| uint16_t mmiperf_client_args::server_port |
Port on iperf server to communicate with.
Definition at line 161 of file mmiperf.h.
◆ target_bw
| uint32_t mmiperf_client_args::target_bw |
Bandwidth limit (in kbps) to communicate with (0 indicates no limit).
Definition at line 163 of file mmiperf.h.
◆ version
Iperf version used to parse packet header.
Definition at line 177 of file mmiperf.h.
The documentation for this struct was generated from the following file: