Initializes the Benchmark client service and starts the benchmark session.
- Parameters
-
- 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.