*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> res_send_setqhook (3c)              
Title
Content
Arch
Section
 

Contents


RES_SEND_SETQHOOK(3C)					 RES_SEND_SETQHOOK(3C)


NAME    [Toc]    [Back]

     res_send_setqhook,	res_send_setrhook - interface to resolver hooks

SYNOPSIS    [Toc]    [Back]

     int res_send_setqhook(char	*proc);

     int res_send_setrhook(char	*proc);

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     /usr/include/resolv.h

SEE ALSO    [Toc]    [Back]

      
      
     res_send(3), resolver(4).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
dns-helper Linux Non-blocking name resolver interface.
dohooks OpenBSD run all hooks in a list
dopowerhooks NetBSD run all power hooks
doshutdownhooks NetBSD run all shutdown hooks
dostartuphooks OpenBSD run all startup hooks
dopowerhooks OpenBSD run all power hooks
doshutdownhooks OpenBSD run all shutdown hooks
res_query NetBSD resolver routines
dn_comp NetBSD resolver routines
res_search OpenBSD resolver routines
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service