Function c_ares_sys::ares_dns_write

source ·
pub unsafe extern "C" fn ares_dns_write(
    dnsrec: *const ares_dns_record_t,
    buf: *mut *mut c_uchar,
    buf_len: *mut usize
) -> ares_status_t
Expand description

Write a complete DNS message

\param[in] dnsrec Pointer to initialized and filled DNS record object. \param[out] buf Pointer passed by reference to be filled in with with DNS message. Must be ares_free()’d by caller. \param[out] buf_len Length of returned buffer containing DNS message. \return ARES_SUCCESS on success