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 3012c232 2004-05-11 alex * $Id: resolve.h,v 1.7 2004/05/11 00:01:11 alex 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 46ec0f24 2002-05-27 alex INT pid; /* PID des Child-Prozess */
31 46ec0f24 2002-05-27 alex INT pipe[2]; /* Pipe fuer IPC */
32 3012c232 2004-05-11 alex INT stage; /* Hostname/IP(0) or IDENT(1)? */
33 3012c232 2004-05-11 alex INT bufpos; /* Position in buffer */
34 3012c232 2004-05-11 alex CHAR buffer[HOST_LEN]; /* Buffer */
38 46ec0f24 2002-05-27 alex GLOBAL fd_set Resolver_FDs;
41 46ec0f24 2002-05-27 alex 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 46ec0f24 2002-05-27 alex GLOBAL RES_STAT *Resolve_Name PARAMS(( CHAR *Host ));