19#include <sys/socket.h>
20#include <netinet/in.h>
32#define INADDR_NONE 0xffffffff
36static void usage(
void);
97 for (p = host->h_addr_list; *p; p++)
int main(int argc, char **argv)
static void callback(void *arg, int status, struct hostent *host)
void ares_gethostbyname(ares_channel channel, const char *name, int family, ares_host_callback callback, void *arg)
int ares_init(ares_channel *channelptr)
struct timeval * ares_timeout(ares_channel channel, struct timeval *maxtv, struct timeval *tv)
void ares_process(ares_channel channel, fd_set *read_fds, fd_set *write_fds)
const char * ares_strerror(int code)
void ares_gethostbyaddr(ares_channel channel, const void *addr, int addrlen, int family, ares_host_callback callback, void *arg)
void ares_destroy(ares_channel channel)
int ares_fds(ares_channel channel, fd_set *read_fds, fd_set *write_fds)