Function c_ares_sys::ares_dns_parse
source · pub unsafe extern "C" fn ares_dns_parse(
buf: *const c_uchar,
buf_len: usize,
flags: c_uint,
dnsrec: *mut *mut ares_dns_record_t,
) -> ares_status_t
Expand description
Parse a complete DNS message.
\param[in] buf pointer to bytes to be parsed \param[in] buf_len Length of buf provided \param[in] flags Flags dictating how the message should be parsed. \param[out] dnsrec Pointer passed by reference for a new DNS record object that must be ares_dns_record_destroy()’d by caller. \return ARES_SUCCESS on success