Function gnunet_sys::GNUNET_DNSPARSER_parse_query [−][src]
pub unsafe extern "C" fn GNUNET_DNSPARSER_parse_query(
udp_payload: *const c_char,
udp_payload_length: usize,
off: *mut usize,
q: *mut GNUNET_DNSPARSER_Query
) -> c_int
Parse a DNS query entry.
@param udp_payload entire UDP payload @param udp_payload_length length of @a udp_payload @param off pointer to the offset of the query to parse in the udp_payload (to be incremented by the size of the query) @param q where to write the query information @return #GNUNET_OK on success, #GNUNET_SYSERR if the query is malformed