Type Alias esp_idf_sys::dns_found_callback

source ·
pub type dns_found_callback = Option<unsafe extern "C" fn(name: *const c_char, ipaddr: *const ip_addr_t, callback_arg: *mut c_void)>;
Expand description

Callback which is invoked when a hostname is found. A function of this type must be implemented by the application using the DNS resolver. @param name pointer to the name that was looked up. @param ipaddr pointer to an ip_addr_t containing the IP address of the hostname, or NULL if the name could not be found (or on any other error). @param callback_arg a user-specified callback argument passed to dns_gethostbyname

Aliased Type§

enum dns_found_callback {
    None,
    Some(unsafe extern "C" fn(_: *const i8, _: *const ip_addr, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const i8, _: *const ip_addr, _: *mut c_void))

Some value of type T.