Blame


1 46ec0f24 2002-05-27 alex /*
2 46ec0f24 2002-05-27 alex * ngIRCd -- The Next Generation IRC Daemon
3 46ec0f24 2002-05-27 alex * Copyright (c)2001,2002 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 50d354bc 2002-12-28 alex * $Id: resolve.h,v 1.4 2002/12/28 15:01:45 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 46ec0f24 2002-05-27 alex #include <sys/types.h>
22 46ec0f24 2002-05-27 alex #include <netinet/in.h>
23 46ec0f24 2002-05-27 alex
24 46ec0f24 2002-05-27 alex
25 46ec0f24 2002-05-27 alex typedef struct _Res_Stat
26 46ec0f24 2002-05-27 alex {
27 46ec0f24 2002-05-27 alex INT pid; /* PID des Child-Prozess */
28 46ec0f24 2002-05-27 alex INT pipe[2]; /* Pipe fuer IPC */
29 46ec0f24 2002-05-27 alex } RES_STAT;
30 46ec0f24 2002-05-27 alex
31 46ec0f24 2002-05-27 alex
32 46ec0f24 2002-05-27 alex GLOBAL fd_set Resolver_FDs;
33 46ec0f24 2002-05-27 alex
34 46ec0f24 2002-05-27 alex
35 46ec0f24 2002-05-27 alex GLOBAL VOID Resolve_Init PARAMS(( VOID ));
36 46ec0f24 2002-05-27 alex
37 46ec0f24 2002-05-27 alex GLOBAL RES_STAT *Resolve_Addr PARAMS(( struct sockaddr_in *Addr ));
38 46ec0f24 2002-05-27 alex GLOBAL RES_STAT *Resolve_Name PARAMS(( CHAR *Host ));
39 46ec0f24 2002-05-27 alex
40 46ec0f24 2002-05-27 alex
41 46ec0f24 2002-05-27 alex #endif
42 46ec0f24 2002-05-27 alex
43 46ec0f24 2002-05-27 alex
44 46ec0f24 2002-05-27 alex /* -eof- */