Function c_ares_sys::ares_dns_rr_get_addr

source ยท
pub unsafe extern "C" fn ares_dns_rr_get_addr(
    dns_rr: *const ares_dns_rr_t,
    key: ares_dns_rr_key_t,
) -> *const in_addr
Expand description

Retrieve a pointer to the ipv4 address. Can only be used on keys with datatype ARES_DATATYPE_INADDR.

\param[in] dns_rr Pointer to resource record \param[in] key DNS Resource Record Key \return pointer to ipv4 address or NULL on error