|
CTaps 0.3.0
A C implementation of the Transport Services API (RFC 9621 - 9623)
|
Callback functions for listener events. More...
#include <ctaps.h>
Data Fields | |
| void(* | listener_ready )(ct_listener_t *listener) |
| void(* | connection_received )(ct_listener_t *listener, ct_connection_t *new_conn) |
| Called when a new connection is received. | |
| void(* | establishment_error )(ct_listener_t *listener, int error_code) |
| Called when connection establishment fails for an incoming connection. | |
| void(* | listener_closed )(ct_listener_t *listener) |
| Called when the listener has been closed and will accept no more connections. | |
| void * | per_listener_context |
Callback functions for listener events.
Set these callbacks via ct_preconnection_listen().
| void(* ct_listener_callbacks_t::connection_received) (ct_listener_t *listener, ct_connection_t *new_conn) |
| void(* ct_listener_callbacks_t::establishment_error) (ct_listener_t *listener, int error_code) |
| void(* ct_listener_callbacks_t::listener_closed) (ct_listener_t *listener) |
| void(* ct_listener_callbacks_t::listener_ready) (ct_listener_t *listener) |
| void* ct_listener_callbacks_t::per_listener_context |
Per listener context accessible whenever a given listener is passed to a callback.
Can be fetched with ct_listener_get_callback_context(listener)