res_send_setqhook(3C)

res_send_setqhook, res_send_setrhook - interface to resolver hooks

As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.

NAME
     res_send_setqhook, res_send_setrhook - interface to resolver hooks

SYNOPSIS
     int res_send_setqhook(char *proc);

     int res_send_setrhook(char *proc);

DESCRIPTION
     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.)

FILES
     /usr/include/resolv.h

SEE ALSO
     res_send(3), resolver(4).