Function c_ares_sys::ares_dns_pton

source ·
pub unsafe extern "C" fn ares_dns_pton(
    ipaddr: *const c_char,
    addr: *mut ares_addr,
    out_len: *mut usize
) -> *const c_void
Expand description

Convert any valid ip address (ipv4 or ipv6) into struct ares_addr and return the starting pointer of the network byte order address and the length of the address (4 or 16).

\param[in] ipaddr ASCII string form of the ip address \param[in,out] addr Must set “family” member to one of AF_UNSPEC, AF_INET, AF_INET6 on input. \param[out] out_len Length of binary form address \return Pointer to start of binary address or NULL on error.