25 #ifndef _FNET_BENCH_CLN_H_ 27 #define _FNET_BENCH_CLN_H_ 29 #if FNET_CFG_BENCH_CLN || defined(__DOXYGEN__) 102 #if defined(__cplusplus) 170 #if defined(__cplusplus) Initialization parameters for the fnet_bench_cln_init() function.
fnet_bench_cln_callback_session_end_t callback
Pointer to the callback function defined by fnet_bench_cln_callback_session_end_t. It is called when the benchmark session is finished.
fnet_bool_t fnet_bench_cln_is_enabled(fnet_bench_cln_desc_t desc)
Detects if the Benchmark client service is enabled or disabled.
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.
fnet_uint32_t fnet_time_t
Unsigned integer type representing time uinits. It can be seconds or milliseconds.
fnet_size_t bytes
Number of transmitted bytes, in addition to megabytes, during the benchmark session.
fnet_time_t time_ms
Benchmark session lifetime in milliseconds.
void * fnet_bench_cln_desc_t
Benchmark client descriptor.
fnet_index_t message_number
Number of messages to send.
fnet_size_t message_size
Size of one message to send. Its value must be less than FNET_CFG_BENCH_CLN_BUFFER_SIZE.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
void(* fnet_bench_cln_callback_session_end_t)(fnet_bench_cln_desc_t bench_cln_desc, const fnet_bench_cln_result_t *bench_cln_result, void *cookie)
Benchmark client event handler callback function prototype, that is called when the benchmark client ...
void * cookie
Optional application-specific parameter. It's passed to the callback function as input parameter...
fnet_socket_type_t
Socket types.
fnet_size_t megabytes
Number of transmitted megabytes during the benchmark session.
unsigned int fnet_index_t
Unsigned integer type representing the index.
fnet_socket_type_t type
Protocol type. It can be SOCK_STREAM (TCP) or SOCK_DGRAM (UDP).
void fnet_bench_cln_release(fnet_bench_cln_desc_t desc)
Aborts the benchmark session and releases the benchmark client service.
Benchmark client result passed to the "session end" event handler callback.
Socket address structure.