2 46ec0f24 2002-05-27 alex * ngIRCd -- The Next Generation IRC Daemon
3 b79b315d 2003-12-27 alex * Copyright (c)2001-2003 by Alexander Barton (alex@barton.de)
5 c7f07523 2002-12-12 alex * This program is free software; you can redistribute it and/or modify
6 c7f07523 2002-12-12 alex * it under the terms of the GNU General Public License as published by
7 c7f07523 2002-12-12 alex * the Free Software Foundation; either version 2 of the License, or
8 c7f07523 2002-12-12 alex * (at your option) any later version.
9 c7f07523 2002-12-12 alex * Please read the file COPYING, README and AUTHORS for more information.
11 8adff592 2005-03-19 fw * $Id: resolve.h,v 1.8 2005/03/19 18:43:49 fw Exp $
13 c7f07523 2002-12-12 alex * Asynchronous resolver (header)
17 46ec0f24 2002-05-27 alex #ifndef __resolve_h__
18 46ec0f24 2002-05-27 alex #define __resolve_h__
21 7deacbaa 2003-04-21 alex #ifdef HAVE_SYS_SELECT_H
22 7deacbaa 2003-04-21 alex # include <sys/select.h>
24 46ec0f24 2002-05-27 alex #include <sys/types.h>
25 46ec0f24 2002-05-27 alex #include <netinet/in.h>
28 46ec0f24 2002-05-27 alex typedef struct _Res_Stat
30 8adff592 2005-03-19 fw int pid; /* PID des Child-Prozess */
31 8adff592 2005-03-19 fw int pipe[2]; /* Pipe fuer IPC */
32 8adff592 2005-03-19 fw int stage; /* Hostname/IP(0) or IDENT(1)? */
33 8adff592 2005-03-19 fw int bufpos; /* Position in buffer */
34 8adff592 2005-03-19 fw char buffer[HOST_LEN]; /* Buffer */
38 46ec0f24 2002-05-27 alex GLOBAL fd_set Resolver_FDs;
41 8adff592 2005-03-19 fw GLOBAL void Resolve_Init PARAMS(( void ));
43 b79b315d 2003-12-27 alex #ifdef IDENTAUTH
44 b79b315d 2003-12-27 alex GLOBAL RES_STAT *Resolve_Addr PARAMS(( struct sockaddr_in *Addr, int Sock ));
46 46ec0f24 2002-05-27 alex GLOBAL RES_STAT *Resolve_Addr PARAMS(( struct sockaddr_in *Addr ));
49 8adff592 2005-03-19 fw GLOBAL RES_STAT *Resolve_Name PARAMS(( char *Host ));