Blame


1 5fefe1a3 2001-12-12 alex /*
2 5fefe1a3 2001-12-12 alex * ngIRCd -- The Next Generation IRC Daemon
3 03d971d9 2002-01-02 alex * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4 5fefe1a3 2001-12-12 alex *
5 5fefe1a3 2001-12-12 alex * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 5fefe1a3 2001-12-12 alex * der GNU General Public License (GPL), wie von der Free Software Foundation
7 5fefe1a3 2001-12-12 alex * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 5fefe1a3 2001-12-12 alex * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 5fefe1a3 2001-12-12 alex * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 804b1ec4 2001-12-31 alex * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
11 5fefe1a3 2001-12-12 alex *
12 ca33cbda 2002-03-12 alex * $Id: conn.h,v 1.13 2002/03/12 14:37:52 alex Exp $
13 5fefe1a3 2001-12-12 alex *
14 5fefe1a3 2001-12-12 alex * conn.h: Verwaltung aller Netz-Verbindungen ("connections") (Header)
15 5fefe1a3 2001-12-12 alex */
16 5fefe1a3 2001-12-12 alex
17 5fefe1a3 2001-12-12 alex
18 5fefe1a3 2001-12-12 alex #ifndef __conn_h__
19 5fefe1a3 2001-12-12 alex #define __conn_h__
20 5fefe1a3 2001-12-12 alex
21 5fefe1a3 2001-12-12 alex
22 8465653c 2002-02-23 alex #include <time.h>
23 8465653c 2002-02-23 alex
24 8465653c 2002-02-23 alex
25 933e62fb 2001-12-14 alex typedef INT CONN_ID;
26 933e62fb 2001-12-14 alex
27 03d971d9 2002-01-02 alex typedef struct _Res_Stat
28 03d971d9 2002-01-02 alex {
29 03d971d9 2002-01-02 alex INT pid; /* PID des Child-Prozess */
30 03d971d9 2002-01-02 alex INT pipe[2]; /* Pipe fuer IPC */
31 03d971d9 2002-01-02 alex } RES_STAT;
32 933e62fb 2001-12-14 alex
33 03d971d9 2002-01-02 alex
34 5fefe1a3 2001-12-12 alex GLOBAL VOID Conn_Init( VOID );
35 5fefe1a3 2001-12-12 alex GLOBAL VOID Conn_Exit( VOID );
36 5fefe1a3 2001-12-12 alex
37 08cf5607 2001-12-26 alex GLOBAL BOOLEAN Conn_NewListener( CONST INT Port );
38 5fefe1a3 2001-12-12 alex
39 0d91be08 2001-12-13 alex GLOBAL VOID Conn_Handler( INT Timeout );
40 5fefe1a3 2001-12-12 alex
41 41d3107c 2001-12-15 alex GLOBAL BOOLEAN Conn_Write( CONN_ID Idx, CHAR *Data, INT Len );
42 cf211096 2001-12-23 alex GLOBAL BOOLEAN Conn_WriteStr( CONN_ID Idx, CHAR *Format, ... );
43 5fefe1a3 2001-12-12 alex
44 79809118 2002-01-06 alex GLOBAL VOID Conn_Close( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformClient );
45 41d3107c 2001-12-15 alex
46 804b1ec4 2001-12-31 alex GLOBAL VOID Conn_UpdateIdle( CONN_ID Idx );
47 8465653c 2002-02-23 alex GLOBAL time_t Conn_GetIdle( CONN_ID Idx );
48 8465653c 2002-02-23 alex GLOBAL time_t Conn_LastPing( CONN_ID Idx );
49 7c91951d 2001-12-25 alex
50 804b1ec4 2001-12-31 alex
51 5fefe1a3 2001-12-12 alex #endif
52 5fefe1a3 2001-12-12 alex
53 5fefe1a3 2001-12-12 alex
54 5fefe1a3 2001-12-12 alex /* -eof- */