RES_SEND_SETQHOOK(3C) RES_SEND_SETQHOOK(3C)
res_send_setqhook, res_send_setrhook - interface to resolver hooks
int res_send_setqhook(char *proc);
int res_send_setrhook(char *proc);
res_send_setqhook , ( res_send_setrhook ) allow for a function hook to be
implemented at the beginning (end) of the resolution query process,
res_send(3). The hook function takes the form:
res_sendhookact proc(struct sockaddr_in **nsap, char **buf, int *buflen,
char *ans, int anssiz, int *resplen)
where res_sendhookact is a typedef: (see /usr/include/resolv.h)
typedef enum { res_goahead, res_nextns, res_modified, res_done, res_error
} res_sendhookact;
The resolver library will walk through the current list of name servers,
as argument nsap. buf, buflen, ans and anssiz are the four arguments
found in res_send(3) , and resplen is the length of the reply message
(returned by res_send.)
/usr/include/resolv.h
res_send(3), resolver(4).
PPPPaaaaggggeeee 1111 [ Back ]
|