Embedded TCP/IP stack
4.1.0
|
fnet_bench_cln.h
82 typedef void(*fnet_bench_cln_callback_session_end_t)(fnet_bench_cln_desc_t bench_cln_desc, const struct fnet_bench_cln_result *bench_cln_result, void *cookie);
fnet_size_t bytes
Number of transmitted bytes, in addition to megabytes, during the benchmark session.
Definition: fnet_bench_cln.h:69
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.
Definition: fnet_bench_cln.h:93
Benchmark client result passed to the "session end" event handler callback.
Definition: fnet_bench_cln.h:66
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_uint32_t fnet_time_t
Unsigned integer type representing time uinits. It can be ticks, seconds or milliseconds.
Definition: fnet_timer.h:66
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.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
fnet_size_t megabytes
Number of transmitted megabytes during the benchmark session.
Definition: fnet_bench_cln.h:68
fnet_size_t message_size
Size of one message to send. Its value must be less than FNET_CFG_BENCH_CLN_BUFFER_SIZE.
Definition: fnet_bench_cln.h:91
void fnet_bench_cln_release(fnet_bench_cln_desc_t desc)
Aborts the benchmark session and releases the benchmark client service.
fnet_socket_type_t type
Protocol type. It can be SOCK_STREAM (TCP) or SOCK_DGRAM (UDP).
Definition: fnet_bench_cln.h:90
void * cookie
Optional application-specific parameter. It's passed to the callback function as input parameter...
Definition: fnet_bench_cln.h:96
Initialization parameters for the fnet_bench_cln_init() function.
Definition: fnet_bench_cln.h:87
void(* fnet_bench_cln_callback_session_end_t)(fnet_bench_cln_desc_t bench_cln_desc, const struct fnet_bench_cln_result *bench_cln_result, void *cookie)
Benchmark client event handler callback function prototype, that is called when the benchmark client ...
Definition: fnet_bench_cln.h:82
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net