Function c_ares_sys::ares_dns_rr_get_opt

source ยท
pub unsafe extern "C" fn ares_dns_rr_get_opt(
    dns_rr: *const ares_dns_rr_t,
    key: ares_dns_rr_key_t,
    idx: usize,
    val: *mut *const c_uchar,
    val_len: *mut usize,
) -> c_ushort
Expand description

Retrieve the option for the RR by index.

\param[in] dns_rr Pointer to resource record \param[in] key DNS Resource Record Key \param[in] idx Index of option record \param[out] val Optional. Pointer passed by reference to hold value. Options may not have values. Value if returned is guaranteed to be NULL terminated, however in most cases it is not printable. \param[out] val_len Optional. Pointer passed by reference to hold value length. \return option key/id on success, 65535 on misuse.