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

Contents of /main/contrib/ares/ares_local.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5295 - (show annotations) (download)
Mon Aug 22 00:30:05 2005 UTC (14 years, 2 months ago) by jason
File MIME type: text/plain
File size: 776 byte(s)
merged 5270:HEAD from b-directory-reorg
1 #ifndef ARES_LOCAL__H
2 #define ARES_LOCAL__H
3 /*
4 ** Define a suite of callbacks that can return locally configured DNS results.
5 ** Very useful for testing or simulation.
6 **
7 ** Returns 0 when unable to handle request, non-zero when handled (and callbacks invoked).
8 **
9 */
10
11 int ares_local_gethostbyname(ares_channel channel, const char *name, int family,
12 ares_host_callback callback, void *arg);
13
14 int ares_local_gethostbyaddr(ares_channel channel, const char *addr, int addrlen,
15 int family, ares_host_callback callback, void*arg);
16
17 int ares_local_query(ares_channel channel, const char *name, int dnsclass,
18 int type, ares_callback callback, void *arg);
19
20
21 void ares_local_process_requests();
22
23 #endif

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27