Blob


1 /*
2 * ngIRCd -- The Next Generation IRC Daemon
3 * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 * Please read the file COPYING, README and AUTHORS for more information.
10 *
11 * $Id: resolve.h,v 1.4 2002/12/28 15:01:45 alex Exp $
12 *
13 * Asynchronous resolver (header)
14 */
17 #ifndef __resolve_h__
18 #define __resolve_h__
21 #include <sys/types.h>
22 #include <netinet/in.h>
25 typedef struct _Res_Stat
26 {
27 INT pid; /* PID des Child-Prozess */
28 INT pipe[2]; /* Pipe fuer IPC */
29 } RES_STAT;
32 GLOBAL fd_set Resolver_FDs;
35 GLOBAL VOID Resolve_Init PARAMS(( VOID ));
37 GLOBAL RES_STAT *Resolve_Addr PARAMS(( struct sockaddr_in *Addr ));
38 GLOBAL RES_STAT *Resolve_Name PARAMS(( CHAR *Host ));
41 #endif
44 /* -eof- */