[][src]Type Definition libcoap_sys::coap_event_handler_t

type coap_event_handler_t = Option<unsafe extern "C" fn(arg1: *mut coap_context_t, event: coap_event_t, session: *mut coap_session_t) -> c_int>;

Type for event handler functions that can be registered with a CoAP context using the unction coap_set_event_handler(). When called by the library, the first argument will be the coap_context_t object where the handler function has been registered. The second argument is the event type that may be complemented by event-specific data passed as the third argument.