27 #ifndef _EVENT2_DNS_COMPAT_H_
28 #define _EVENT2_DNS_COMPAT_H_
42 #include <event2/event-config.h>
43 #ifdef _EVENT_HAVE_SYS_TYPES_H
44 #include <sys/types.h>
46 #ifdef _EVENT_HAVE_SYS_TIME_H
328 int evdns_config_windows_nameservers(
void);
329 #define EVDNS_CONFIG_WINDOWS_NAMESERVERS_IMPLEMENTED
int evdns_init(void)
Initialize the asynchronous DNS library.
Definition: evdns.c:3815
int evdns_resolve_reverse(const struct in_addr *in, int flags, evdns_callback_type callback, void *ptr)
Lookup a PTR record for a given IP address.
Definition: evdns.c:2837
void(* evdns_callback_type)(int result, char type, int count, int ttl, void *addresses, void *arg)
The callback that contains the results from a lookup.
Definition: dns.h:195
int evdns_resume(void)
Resume normal operation and continue any suspended resolve requests.
Definition: evdns.c:2365
void evdns_shutdown(int fail_requests)
Shut down the asynchronous DNS resolver and terminate all active requests.
Definition: evdns.c:3926
int evdns_count_nameservers(void)
Get the number of configured nameservers.
Definition: evdns.c:2280
#define evutil_socket_t
A type wide enough to hold the output of "socket()" or "accept()".
Definition: util.h:278
struct evdns_server_port * evdns_add_server_port(evutil_socket_t socket, int flags, evdns_request_callback_fn_type callback, void *user_data)
As evdns_server_new_with_base.
Definition: evdns.c:1657
Definition: ipv6-internal.h:51
int evdns_clear_nameservers_and_suspend(void)
Remove all configured nameservers, and suspend all pending resolves.
Definition: evdns.c:2348
int evdns_resolve_ipv6(const char *name, int flags, evdns_callback_type callback, void *ptr)
Lookup an AAAA record for a given name.
Definition: evdns.c:2802
int evdns_resolve_reverse_ipv6(const struct in6_addr *in, int flags, evdns_callback_type callback, void *ptr)
Lookup a PTR record for a given IPv6 address.
Definition: evdns.c:2877
int evdns_nameserver_ip_add(const char *ip_as_string)
Add a nameserver.
Definition: evdns.c:2522
void evdns_search_ndots_set(const int ndots)
Set the 'ndots' parameter for searches.
Definition: evdns.c:3014
Common convenience functions for cross-platform portability and related socket manipulations.
void evdns_search_clear(void)
Clear the list of search domains.
Definition: evdns.c:2950
void evdns_search_add(const char *domain)
Add a domain to the list of search domains.
Definition: evdns.c:3000
int evdns_set_option(const char *option, const char *val, int flags)
Set the value of a configuration option.
Definition: evdns.c:3371
int evdns_resolve_ipv4(const char *name, int flags, evdns_callback_type callback, void *ptr)
Lookup an A record for a given name.
Definition: evdns.c:2764
struct evdns_base * evdns_get_global_base(void)
Return the global evdns_base created by event_init() and used by the other deprecated functions...
Definition: evdns.c:359
int evdns_nameserver_add(unsigned long int address)
Add a nameserver.
Definition: evdns.c:2470
int evdns_resolv_conf_parse(int flags, const char *const filename)
Parse a resolv.conf file.
Definition: evdns.c:3513
void(* evdns_request_callback_fn_type)(struct evdns_server_request *, void *)
A callback to implement a DNS server.
Definition: dns.h:538