X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconn.h;h=5e64153b862306d51e61a0d7c65c95dfcc83e68f;hp=2c317ef91ab1486c944720aad1e514126fdc1700;hb=95d55c56c6967f2e85246bd168cf53fec4d3b9fd;hpb=b9f005af75befc6f731456377ea6784e121d227e diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index 2c317ef9..5e64153b 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -9,45 +9,9 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conn.h,v 1.11 2002/02/11 01:00:50 alex Exp $ + * $Id: conn.h,v 1.14 2002/03/29 22:54:35 alex Exp $ * * conn.h: Verwaltung aller Netz-Verbindungen ("connections") (Header) - * - * $Log: conn.h,v $ - * Revision 1.11 2002/02/11 01:00:50 alex - * - neue Funktion Conn_LastPing(). - * - * Revision 1.10 2002/01/06 15:18:15 alex - * - Loglevel und Meldungen nochmals geaendert. Level passen nun besser. - * - * Revision 1.9 2002/01/02 02:44:36 alex - * - neue Defines fuer max. Anzahl Server und Operatoren. - * - * Revision 1.8 2001/12/31 02:18:51 alex - * - viele neue Befehle (WHOIS, ISON, OPER, DIE, RESTART), - * - neuen Header "defines.h" mit (fast) allen Konstanten. - * - Code Cleanups und viele "kleine" Aenderungen & Bugfixes. - * - * Revision 1.7 2001/12/26 14:45:37 alex - * - "Code Cleanups". - * - * Revision 1.6 2001/12/25 22:03:47 alex - * - Conn_Close() eingefuehrt: war die lokale Funktion Close_Connection(). - * - * Revision 1.5 2001/12/23 21:57:48 alex - * - Conn_WriteStr() unterstuetzt nun variable Parameter. - * - * Revision 1.4 2001/12/15 00:08:27 alex - * - neue globale Funktionen: Conn_Write() und Conn_WriteStr(). - * - * Revision 1.3 2001/12/14 08:15:45 alex - * - CONN_ID wird definiert. - * - * Revision 1.2 2001/12/13 01:33:32 alex - * - Conn_Handler() unterstuetzt nun einen Timeout (in Sekunden). - * - * Revision 1.1 2001/12/12 17:18:38 alex - * - Modul zur Verwaltung aller Netzwerk-Verbindungen begonnen. */ @@ -55,6 +19,9 @@ #define __conn_h__ +#include + + typedef INT CONN_ID; typedef struct _Res_Stat @@ -67,7 +34,7 @@ typedef struct _Res_Stat GLOBAL VOID Conn_Init( VOID ); GLOBAL VOID Conn_Exit( VOID ); -GLOBAL BOOLEAN Conn_NewListener( CONST INT Port ); +GLOBAL BOOLEAN Conn_NewListener( CONST UINT Port ); GLOBAL VOID Conn_Handler( INT Timeout ); @@ -77,8 +44,8 @@ GLOBAL BOOLEAN Conn_WriteStr( CONN_ID Idx, CHAR *Format, ... ); GLOBAL VOID Conn_Close( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformClient ); GLOBAL VOID Conn_UpdateIdle( CONN_ID Idx ); -GLOBAL INT32 Conn_GetIdle( CONN_ID Idx ); -GLOBAL INT32 Conn_LastPing( CONN_ID Idx ); +GLOBAL time_t Conn_GetIdle( CONN_ID Idx ); +GLOBAL time_t Conn_LastPing( CONN_ID Idx ); #endif