Embedded TCP/IP stack  4.7.0

◆ fnet_bench_cln_init()

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.

Parameters
paramsInitialization parameters defined by fnet_bench_cln_params_t.
Returns
This function returns:
  • Benchmark client descriptor if no error occurs.
  • FNET_NULL if an error occurs.
See also
fnet_bench_cln_release()

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.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net