Embedded TCP/IP stack
4.1.0
|
fnet_bench_srv.h
88 typedef void(*fnet_bench_srv_callback_session_begin_t)(fnet_bench_srv_desc_t desc, struct fnet_sockaddr address, void *cookie);
101 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);
164 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);
184 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);
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.
fnet_bench_srv_desc_t fnet_bench_srv_init(struct fnet_bench_srv_params *params)
Initializes the Benchmark server service.
struct fnet_sockaddr address
Server socket address. If server IP address and Scope ID are set to 0s, the server will listen to a...
Definition: fnet_bench_srv.h:59
fnet_uint32_t fnet_time_t
Unsigned integer type representing time uinits. It can be ticks, seconds or milliseconds.
Definition: fnet_timer.h:66
void fnet_bench_srv_release(fnet_bench_srv_desc_t desc)
Releases the Benchmark server service.
fnet_bool_t fnet_bench_srv_is_enabled(fnet_bench_srv_desc_t desc)
Detects if the Benchmark server service is enabled or disabled.
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 ...
Definition: fnet_bench_srv.h:101
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.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
fnet_size_t megabytes
Number of received megabytes during the benchmark session.
Definition: fnet_bench_srv.h:72
fnet_size_t bytes
Number of received bytes, in addition to megabytes, during the benchmark session. ...
Definition: fnet_bench_srv.h:73
Benchmark server result passed to the "session end" event handler callback.
Definition: fnet_bench_srv.h:70
Initialization parameters for the fnet_bench_srv_init() function.
Definition: fnet_bench_srv.h:57
fnet_socket_type_t type
Protocol type. It can be SOCK_STREAM (TCP) or SOCK_DGRAM (UDP).
Definition: fnet_bench_srv.h:63
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 ...
Definition: fnet_bench_srv.h:88
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net