/[resiprocate]/main/sip/contrib/ares/ares.h
ViewVC logotype

Diff of /main/sip/contrib/ares/ares.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1479 by ryker, Thu Jun 5 00:30:30 2003 UTC revision 1726 by fluffy, Sun Sep 14 00:27:24 2003 UTC
# Line 1  Line 1 
1  /* $Id: ares.h,v 1.1 2003/06/05 00:30:32 ryker Exp $ */  /* $Id: ares.h,v 1.2 2003/09/14 00:27:24 fluffy Exp $ */
2    
3  /* Copyright 1998 by the Massachusetts Institute of Technology.  /* Copyright 1998 by the Massachusetts Institute of Technology.
4   *   *
# Line 18  Line 18 
18  #ifndef ARES__H  #ifndef ARES__H
19  #define ARES__H  #define ARES__H
20    
21    #ifdef WIN32
22    #include <errno.h>
23    #include <winsock2.h>
24    #include <io.h>
25    
26    #include <string.h>
27    #include <stdio.h>
28    
29    
30    #endif
31    
32  #include <sys/types.h>  #include <sys/types.h>
33  #include <netinet/in.h>  //#include <netinet/in.h>
34    
35    
36  #define ARES_SUCCESS            0  #define ARES_SUCCESS            0
37    
# Line 121  Line 133 
133  const char *ares_strerror(int code, char **memptr);  const char *ares_strerror(int code, char **memptr);
134  void ares_free_errmem(char *mem);  void ares_free_errmem(char *mem);
135    
136    #define T_A             1               /* host address */
137    #define T_NS            2               /* authoritative server */
138    #define T_MD            3               /* mail destination */
139    #define T_MF            4               /* mail forwarder */
140    #define T_CNAME         5               /* canonical name */
141    #define T_SOA           6               /* start of authority zone */
142    #define T_MB            7               /* mailbox domain name */
143    #define T_MG            8               /* mail group member */
144    #define T_MR            9               /* mail rename name */
145    #define T_NULL          10              /* null resource record */
146    #define T_WKS           11              /* well known service */
147    #define T_PTR           12              /* domain name pointer */
148    #define T_HINFO         13              /* host information */
149    #define T_MINFO         14              /* mailbox information */
150    #define T_MX            15              /* mail routing information */
151    #define T_TXT           16              /* text strings */
152    #define T_RP            17              /* responsible person */
153    #define T_AFSDB         18              /* AFS cell database */
154    #define T_X25           19              /* X_25 calling address */
155    #define T_ISDN          20              /* ISDN calling address */
156    #define T_RT            21              /* router */
157    #define T_NSAP          22              /* NSAP address */
158    #define T_NSAP_PTR      23              /* reverse NSAP lookup (deprecated) */
159    #define T_SIG           24              /* security signature */
160    #define T_KEY           25              /* security key */
161    #define T_PX            26              /* X.400 mail mapping */
162    #define T_GPOS          27              /* geographical position (withdrawn) */
163    #define T_AAAA          28              /* IP6 Address */
164    #define T_LOC           29              /* Location Information */
165            /* non standard */
166    #define T_UINFO         100             /* user (finger) information */
167    #define T_UID           101             /* user ID */
168    #define T_GID           102             /* group ID */
169    #define T_UNSPEC        103             /* Unspecified format (binary data) */
170            /* Query type values which do not appear in resource records */
171    #define T_AXFR          252             /* transfer zone of authority */
172    #define T_MAILB         253             /* transfer mailbox records */
173    #define T_MAILA         254             /* transfer mail agent records */
174    #define T_ANY           255             /* wildcard match */
175    
176    
177    #define C_IN 1
178    #define C_CHAOS 3
179    #define C_HS 4
180    #define C_ANY 255
181    
182    #define INDIR_MASK 0xc0
183    #define HFIXEDSZ 12
184    #define QFIXEDSZ 4
185    #define RRFIXEDSZ 10
186    
187    #define NOERROR 0
188    #define FORMERR 1
189    #define SERVFAIL 2
190    #define NXDOMAIN 3
191    #define NOTIMP 4
192    #define REFUSED 5
193    
194    #define PACKETSZ 512
195    #define MAXHOSTNAMELEN 256
196    
197    #define NAMESERVER_PORT 53
198    
199    #define QUERY 0
200    #define MAXLABEL 63
201    
202    
203  #endif /* ARES__H */  #endif /* ARES__H */

Legend:
Removed from v.1479  
changed lines
  Added in v.1726

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27