Embedded TCP/IP stack: fnet_bench_srv_init

FNET

fnet_bench_srv_desc_t fnet_bench_srv_init ( struct fnet_bench_srv_params params)

Initializes the Benchmark server service.

Parameters
paramsInitialization parameters defined by fnet_bench_srv_params.
Returns
This function returns:
  • Benchmark server descriptor if no error occurs.
  • 0 if an error occurs.
See also
fnet_bench_srv_release()

This function initializes the Benchmark server service. It allocates all resources needed and registers the Benchmark server 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 server service in the background.


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