ares.h   ares.h 
/* $Id: ares.h,v 1.2 2000/01/05 16:29:43 ghudson Exp $ */ /* $Id: ares.h,v 1.3 2000/09/21 19:15:48 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 97 skipping to change at line 97
typedef void (*ares_host_callback)(void *arg, int status, typedef void (*ares_host_callback)(void *arg, int status,
struct hostent *hostent); struct hostent *hostent);
int ares_init(ares_channel *channelptr); int ares_init(ares_channel *channelptr);
int ares_init_options(ares_channel *channelptr, struct ares_options *option s, int ares_init_options(ares_channel *channelptr, struct ares_options *option s,
int optmask); int optmask);
void ares_destroy(ares_channel channel); void ares_destroy(ares_channel channel);
void ares_send(ares_channel channel, const unsigned char *qbuf, int qlen, void ares_send(ares_channel channel, const unsigned char *qbuf, int qlen,
ares_callback callback, void *arg); ares_callback callback, void *arg);
void ares_query(ares_channel channel, const char *name, int c_class, void ares_query(ares_channel channel, const char *name, int dnsclass,
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 dnsclass,
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 *maxtv, struct timeval *ares_timeout(ares_channel channel, struct timeval *maxtv,
struct timeval *tv); 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 dnsclass, int type, unsigned short i d,
int rd, unsigned 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_string(char *str); void ares_free_string(char *str);
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);
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 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/