Embedded TCP/IP stack  4.7.0
Benchmark server API

Detailed Description

The FNET benchmark server/receiver is used for performance measuring and stress test of TCP and UDP.
After the FNET benchmark server is initialized by calling the fnet_bench_srv_init() function, the user application should call the main service-polling function fnet_service_poll() periodically in background.
For the FNET benchmark server example, refer to the FNET Bench demo source code.
Configuration parameters:

Data Structures

struct  fnet_bench_srv_params_t
 Initialization parameters for the fnet_bench_srv_init() function. More...
 
struct  fnet_bench_srv_result
 Benchmark server result passed to the "session end" event handler callback. More...
 

Typedefs

typedef void * fnet_bench_srv_desc_t
 Benchmark server descriptor. More...
 
typedef void(* fnet_bench_srv_callback_session_begin_t) (fnet_bench_srv_desc_t desc, struct fnet_sockaddr address, void *cookie)
 Benchmark server event handler callback function prototype, that is called when the benchmark server has started a new benchmarking session. More...
 
typedef void(* fnet_bench_srv_callback_session_end_t) (fnet_bench_srv_desc_t desc, const struct fnet_bench_srv_result *bench_srv_result, void *cookie)
 Benchmark server event handler callback function prototype, that is called when the benchmark server has finished the benchmarking session. More...
 

Functions

fnet_bench_srv_desc_t fnet_bench_srv_init (fnet_bench_srv_params_t *params)
 Initializes the Benchmark server service. More...
 
void fnet_bench_srv_release (fnet_bench_srv_desc_t desc)
 Releases the Benchmark server service. More...
 
void fnet_bench_srv_set_callback_session_begin (fnet_bench_srv_desc_t desc, fnet_bench_srv_callback_session_begin_t callback_session_begin, void *cookie)
 Registers the "session begin" event handler callback. More...
 
void fnet_bench_srv_set_callback_session_end (fnet_bench_srv_desc_t desc, fnet_bench_srv_callback_session_end_t callback_session_end, void *cookie)
 Registers the "session end" event handler callback. More...
 
fnet_bool_t fnet_bench_srv_is_enabled (fnet_bench_srv_desc_t desc)
 Detects if the Benchmark server service is enabled or disabled. More...
 

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