Blame


1 46ec0f24 2002-05-27 alex /*
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)
4 46ec0f24 2002-05-27 alex *
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.
10 46ec0f24 2002-05-27 alex *
11 3012c232 2004-05-11 alex * $Id: resolve.h,v 1.7 2004/05/11 00:01:11 alex Exp $
12 46ec0f24 2002-05-27 alex *
13 c7f07523 2002-12-12 alex * Asynchronous resolver (header)
14 46ec0f24 2002-05-27 alex */
15 46ec0f24 2002-05-27 alex
16 46ec0f24 2002-05-27 alex
17 46ec0f24 2002-05-27 alex #ifndef __resolve_h__
18 46ec0f24 2002-05-27 alex #define __resolve_h__
19 46ec0f24 2002-05-27 alex
20 46ec0f24 2002-05-27 alex
21 7deacbaa 2003-04-21 alex #ifdef HAVE_SYS_SELECT_H
22 7deacbaa 2003-04-21 alex # include <sys/select.h>
23 7deacbaa 2003-04-21 alex #endif
24 46ec0f24 2002-05-27 alex #include <sys/types.h>
25 46ec0f24 2002-05-27 alex #include <netinet/in.h>
26 46ec0f24 2002-05-27 alex
27 46ec0f24 2002-05-27 alex
28 46ec0f24 2002-05-27 alex typedef struct _Res_Stat
29 46ec0f24 2002-05-27 alex {
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 */
35 46ec0f24 2002-05-27 alex } RES_STAT;
36 46ec0f24 2002-05-27 alex
37 46ec0f24 2002-05-27 alex
38 46ec0f24 2002-05-27 alex GLOBAL fd_set Resolver_FDs;
39 46ec0f24 2002-05-27 alex
40 46ec0f24 2002-05-27 alex
41 46ec0f24 2002-05-27 alex GLOBAL VOID Resolve_Init PARAMS(( VOID ));
42 46ec0f24 2002-05-27 alex
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 ));
45 b79b315d 2003-12-27 alex #else
46 46ec0f24 2002-05-27 alex GLOBAL RES_STAT *Resolve_Addr PARAMS(( struct sockaddr_in *Addr ));
47 b79b315d 2003-12-27 alex #endif
48 b79b315d 2003-12-27 alex
49 46ec0f24 2002-05-27 alex GLOBAL RES_STAT *Resolve_Name PARAMS(( CHAR *Host ));
50 46ec0f24 2002-05-27 alex
51 46ec0f24 2002-05-27 alex
52 46ec0f24 2002-05-27 alex #endif
53 46ec0f24 2002-05-27 alex
54 46ec0f24 2002-05-27 alex
55 46ec0f24 2002-05-27 alex /* -eof- */