Type Definition gnunet_sys::GNUNET_DNSSTUB_ResultCallback [−][src]
type GNUNET_DNSSTUB_ResultCallback = Option<unsafe extern "C" fn(cls: *mut c_void, dns: *const GNUNET_TUN_DnsHeader, dns_len: usize)>;
Function called with the result of a DNS resolution. Once this function is called, the resolution request is automatically cancelled / cleaned up. In particular, the function will only be called once.
@param cls closure @param dns dns response, NULL on hard error (i.e. timeout) @param dns_len number of bytes in @a dns