Embedded TCP/IP stack: fnet_bench_srv_set_callback_session_end

FNET

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.

Parameters
descBenchmark server descriptor.
callback_session_endPointer to the callback function defined by fnet_bench_srv_callback_session_end_t.
cookieOptional application-specific parameter.
It's passed to the callback_session_end function as the input parameter.

This function registers the callback_session_end callback function for the "session end" event. This event occurs on a benchmark session end. To stop the event handling, set the callback_session_end parameter to zero value.


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