Embedded TCP/IP stack: fnet_bench_cln_init

FNET

fnet_bench_cln_desc_t fnet_bench_cln_init ( struct fnet_bench_cln_params params)

Initializes the Benchmark client service and starts the benchmark session.

Parameters
paramsInitialization parameters defined by fnet_bench_cln_params.
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 DNS service is released automatically as soon as the resolving is finished.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net