evdns_request_callback_fn_type

A callback to implement a DNS server. The callback function receives a DNS request. It should then optionally add a number of answers to the reply using the evdns_server_request_add_*_reply functions, before calling either evdns_server_request_respond to send the reply back, or evdns_server_request_drop to decline to answer the request.

@param req A newly received request @param user_data A pointer that was passed to evdns_add_server_port_with_base().

extern (C) nothrow
alias evdns_request_callback_fn_type = ExternC!(void function(evdns_server_request*, void*))

Meta