[][src]Type Definition libcoap_sys::coap_response_handler_t

type coap_response_handler_t = Option<unsafe extern "C" fn(context: *mut coap_context_t, session: *mut coap_session_t, sent: *mut coap_pdu_t, received: *mut coap_pdu_t, id: coap_tid_t)>;

Response handler that is used as call-back in coap_context_t.

@param context CoAP session. @param session CoAP session. @param sent The PDU that was transmitted. @param received The PDU that was received. @param id CoAP transaction ID.