Embedded TCP/IP stack
4.7.0
|
fnet_bench_cln_desc_t fnet_bench_cln_init | ( | fnet_bench_cln_params_t * | params | ) |
Initializes the Benchmark client service and starts the benchmark session.
params | Initialization parameters defined by fnet_bench_cln_params_t. |
FNET_NULL
if an error occurs.This function initializes the Benchmark client/transmitter service and starts the benchmark session. It allocates all resources needed and registers the Benchmark client in the service polling list.
After the initialization, the user application should call the main polling function fnet_service_poll() periodically to run the Benchmark client service in the background.
The benchmark results will be passed to the fnet_bench_cln_callback_session_end_t callback function, which is set params
.
The Benchmark service is released automatically as soon as the session is finished.