ares.h   ares.h 
/* $Id$ */ /* $Id: ares.h,v 1.1 1998/08/13 18:07:55 ghudson Exp $ */
/* Copyright 1998 by the Massachusetts Institute of Technology. /* Copyright 1998 by the Massachusetts Institute of Technology.
* *
* Permission to use, copy, modify, and distribute this * Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without * software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright * fee is hereby granted, provided that the above copyright
* notice appear in all copies and that both that copyright * notice appear in all copies and that both that copyright
* notice and this permission notice appear in supporting * notice and this permission notice appear in supporting
* documentation, and that the name of M.I.T. not be used in * documentation, and that the name of M.I.T. not be used in
* advertising or publicity pertaining to distribution of the * advertising or publicity pertaining to distribution of the
skipping to change at line 61 skipping to change at line 61
#define ARES_FLAG_STAYOPEN (1 << 4) #define ARES_FLAG_STAYOPEN (1 << 4)
#define ARES_FLAG_NOSEARCH (1 << 5) #define ARES_FLAG_NOSEARCH (1 << 5)
#define ARES_FLAG_NOALIASES (1 << 6) #define ARES_FLAG_NOALIASES (1 << 6)
#define ARES_FLAG_NOCHECKRESP (1 << 7) #define ARES_FLAG_NOCHECKRESP (1 << 7)
/* Option mask values */ /* Option mask values */
#define ARES_OPT_FLAGS (1 << 0) #define ARES_OPT_FLAGS (1 << 0)
#define ARES_OPT_TIMEOUT (1 << 1) #define ARES_OPT_TIMEOUT (1 << 1)
#define ARES_OPT_TRIES (1 << 2) #define ARES_OPT_TRIES (1 << 2)
#define ARES_OPT_NDOTS (1 << 3) #define ARES_OPT_NDOTS (1 << 3)
#define ARES_OPT_PORT (1 << 4) #define ARES_OPT_UDP_PORT (1 << 4)
#define ARES_OPT_SERVERS (1 << 5) #define ARES_OPT_TCP_PORT (1 << 5)
#define ARES_OPT_DOMAINS (1 << 6) #define ARES_OPT_SERVERS (1 << 6)
#define ARES_OPT_LOOKUPS (1 << 7) #define ARES_OPT_DOMAINS (1 << 7)
#define ARES_OPT_LOOKUPS (1 << 8)
struct ares_options { struct ares_options {
int flags; int flags;
int timeout; int timeout;
int tries; int tries;
int ndots; int ndots;
unsigned short port; unsigned short udp_port;
unsigned short tcp_port;
struct in_addr *servers; struct in_addr *servers;
int nservers; int nservers;
char **domains; char **domains;
int ndomains; int ndomains;
char *lookups; char *lookups;
}; };
struct hostent; struct hostent;
struct timeval; struct timeval;
struct ares_channeldata; struct ares_channeldata;
skipping to change at line 105 skipping to change at line 107
void ares_query(ares_channel channel, const char *name, int c_class, void ares_query(ares_channel channel, const char *name, int c_class,
int type, ares_callback callback, void *arg); int type, ares_callback callback, void *arg);
void ares_search(ares_channel channel, const char *name, int c_class, void ares_search(ares_channel channel, const char *name, int c_class,
int type, ares_callback callback, void *arg); int type, ares_callback callback, void *arg);
void ares_gethostbyname(ares_channel channel, const char *name, int family, void ares_gethostbyname(ares_channel channel, const char *name, int family,
ares_host_callback callback, void *arg); ares_host_callback callback, void *arg);
void ares_gethostbyaddr(ares_channel channel, const void *addr, int addrlen , void ares_gethostbyaddr(ares_channel channel, const void *addr, int addrlen ,
int family, ares_host_callback callback, void *arg); int family, ares_host_callback callback, void *arg);
int ares_fds(ares_channel channel, fd_set *read_fds, fd_set *write_fds); int ares_fds(ares_channel channel, fd_set *read_fds, fd_set *write_fds);
struct timeval *ares_timeout(ares_channel channel, struct timeval *tv); 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 ); void ares_process(ares_channel channel, fd_set *read_fds, fd_set *write_fds );
int ares_mkquery(const char *name, int c_class, int type, unsigned short id , int ares_mkquery(const char *name, int c_class, int type, unsigned short id ,
int rd, char **buf, int *buflen); int rd, unsigned char **buf, int *buflen);
int ares_expand_name(const unsigned char *encoded, const unsigned char *abu f, int ares_expand_name(const unsigned char *encoded, const unsigned char *abu f,
int alen, char **s, int *enclen); int alen, char **s, int *enclen);
int ares_parse_a_reply(const unsigned char *abuf, int alen, int ares_parse_a_reply(const unsigned char *abuf, int alen,
struct hostent **host); struct hostent **host);
int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *a ddr, int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *a ddr,
int addrlen, int family, struct hostent **host); int addrlen, int family, struct hostent **host);
void ares_free_hostent(struct hostent *host); void ares_free_hostent(struct hostent *host);
const char *ares_strerror(int code, char **memptr); const char *ares_strerror(int code, char **memptr);
void ares_free_errmem(char *mem); void ares_free_errmem(char *mem);
 End of changes. 5 change blocks. 
8 lines changed or deleted 11 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/