Embedded TCP/IP stack: fnet_bench_srv_set_callback_session_begin

FNET

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.

Parameters
descBenchmark server descriptor.
callback_session_beginPointer to the callback function defined by fnet_bench_srv_callback_session_begin_t.
cookieOptional application-specific parameter.
It's passed to the callback_session_begin function as the input parameter.

This function registers the callback_session_begin callback function for the "session begin" event. This event occurs on a new benchmark session begin. To stop the event handling, set the callback_session parameter to zero value.


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