reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
ares_local.h
Go to the documentation of this file.
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
11int ares_local_gethostbyname(ares_channel channel, const char *name, int family,
12 ares_host_callback callback, void *arg);
13
14int ares_local_gethostbyaddr(ares_channel channel, const char *addr, int addrlen,
15 int family, ares_host_callback callback, void*arg);
16
17int ares_local_query(ares_channel channel, const char *name, int dnsclass,
18 int type, ares_callback callback, void *arg);
19
20
22
23#endif
static void callback(void *arg, int status, unsigned char *abuf, int alen)
Definition adig.c:388
void(* ares_host_callback)(void *arg, int status, struct hostent *hostent)
Definition ares.h:174
void(* ares_callback)(void *arg, int status, unsigned char *abuf, int alen)
Definition ares.h:172
int ares_local_gethostbyaddr(ares_channel channel, const char *addr, int addrlen, int family, ares_host_callback callback, void *arg)
Definition ares_local.c:13
int ares_local_query(ares_channel channel, const char *name, int dnsclass, int type, ares_callback callback, void *arg)
Definition ares_local.c:20
int ares_local_gethostbyname(ares_channel channel, const char *name, int family, ares_host_callback callback, void *arg)
Definition ares_local.c:6
void ares_local_process_requests()
Definition ares_local.c:27
void list()
Definition userAdmin.cxx:66