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)
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.
12 3102c550 2002-11-05 alex * $Id: conn.h,v 1.21 2002/11/05 14:18:13 alex Exp $
14 5fefe1a3 2001-12-12 alex * conn.h: Verwaltung aller Netz-Verbindungen ("connections") (Header)
18 5fefe1a3 2001-12-12 alex #ifndef __conn_h__
19 5fefe1a3 2001-12-12 alex #define __conn_h__
22 8465653c 2002-02-23 alex #include <time.h>
25 933e62fb 2001-12-14 alex typedef INT CONN_ID;
28 c2f60abe 2002-05-27 alex GLOBAL VOID Conn_Init PARAMS((VOID ));
29 c2f60abe 2002-05-27 alex GLOBAL VOID Conn_Exit PARAMS(( VOID ));
31 c2f60abe 2002-05-27 alex GLOBAL BOOLEAN Conn_NewListener PARAMS(( CONST UINT Port ));
33 b966b210 2002-06-02 alex GLOBAL VOID Conn_Handler PARAMS(( VOID ));
35 c2f60abe 2002-05-27 alex GLOBAL BOOLEAN Conn_Write PARAMS(( CONN_ID Idx, CHAR *Data, INT Len ));
36 c2f60abe 2002-05-27 alex GLOBAL BOOLEAN Conn_WriteStr PARAMS(( CONN_ID Idx, CHAR *Format, ... ));
38 c2f60abe 2002-05-27 alex GLOBAL VOID Conn_Close PARAMS(( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformClient ));
40 c2f60abe 2002-05-27 alex GLOBAL VOID Conn_UpdateIdle PARAMS(( CONN_ID Idx ));
41 c2f60abe 2002-05-27 alex GLOBAL time_t Conn_GetIdle PARAMS(( CONN_ID Idx ));
42 c2f60abe 2002-05-27 alex GLOBAL time_t Conn_LastPing PARAMS(( CONN_ID Idx ));
44 7b6cfc17 2002-08-26 alex GLOBAL VOID Conn_SetPenalty PARAMS(( CONN_ID Idx, time_t Seconds ));
45 df0eb171 2002-10-10 alex GLOBAL VOID Conn_ResetPenalty PARAMS(( CONN_ID Idx ));
47 05839597 2002-11-02 alex GLOBAL VOID Conn_ClearFlags PARAMS(( VOID ));
48 a29e37a4 2002-11-04 alex GLOBAL INT Conn_Flag PARAMS(( CONN_ID Idx ));
49 a29e37a4 2002-11-04 alex GLOBAL VOID Conn_SetFlag PARAMS(( CONN_ID Idx, INT Flag ));
51 3102c550 2002-11-05 alex GLOBAL VOID Conn_SetServer PARAMS(( CONN_ID Idx, INT ConfServer ));
53 05839597 2002-11-02 alex GLOBAL CONN_ID Conn_First PARAMS(( VOID ));
54 05839597 2002-11-02 alex GLOBAL CONN_ID Conn_Next PARAMS(( CONN_ID Idx ));
57 c2f60abe 2002-05-27 alex GLOBAL INT Conn_MaxFD;