Function riot_sys::coap_handle_req

source ·
pub unsafe extern "C" fn coap_handle_req(
    pkt: *mut coap_pkt_t,
    resp_buf: *mut u8,
    resp_buf_len: c_uint,
    ctx: *mut coap_request_ctx_t
) -> ssize_t
Expand description

@brief Handle incoming CoAP request

This function will find the correct handler, call it and write the reply into @p resp_buf.

@param[in] pkt pointer to (parsed) CoAP packet @param[out] resp_buf buffer for response @param[in] resp_buf_len size of response buffer @param[in] ctx CoAP request context information

@returns size of reply packet on success @returns <0 on error