void vortex_ctx_set_idle_handler ( VortexCtx ctx,
VortexIdleHandler  idle_handler,
long  max_idle_period,
axlPointer  user_data,
axlPointer  user_data2 
)

Allows to configure idle handler at context level.

This handler will be called when no traffic was produced/received on a particular connection during the max idle period. This is configured when the handler is passed.

Parameters
ctxThe context where the idle period and the handler will be configured.
idle_handlerThe handler to be called in case a connection have no activity within max_idle_period. The handler will be called each max_idle_period.
max_idle_periodAmount of seconds to wait until considering a connection was idle because no activity was registered within that period.
user_dataOptional user defined pointer to be passed to the idle_handler when activated.
user_data2Second optional user defined pointer to be passed to the idle_handler when activated.