void nopoll_ctx_set_on_accept ( noPollCtx ctx,
noPollActionHandler  on_accept,
noPollPtr  user_data 

Allows to configure the accept handler that will be called when a connection is received but before any handshake takes place.

ctxThe context that will be configured.
on_acceptThe handler to be called when a connection is received. Here the handler must return nopoll_true to accept the connection, otherwise nopoll_false should be returned.
user_dataOptional user data pointer passed to the on accept handler.

References nopoll_return_if_fail.