[][src]Function libcoap_sys::coap_register_event_handler

pub unsafe extern "C" fn coap_register_event_handler(
    context: *mut coap_context_t,
    hnd: coap_event_handler_t
)

Registers the function @p hnd as callback for events from the given CoAP context @p context. Any event handler that has previously been registered with @p context will be overwritten by this operation.

@param context The CoAP context to register the event handler with. @param hnd The event handler to be registered. @c NULL if to be de-registered.