[][src]Function libcoap_sys::coap_pdu_parse_opt

pub unsafe extern "C" fn coap_pdu_parse_opt(pdu: *mut coap_pdu_t) -> c_int

Verify consistency in the given CoAP PDU structure and locate the data. This function returns @c 0 on error or a number greater than zero on success. This function only parses the token and options, up to the payload start marker.

@param pdu The PDU structure to.

@return 1 on success or @c 0 on error.