X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fconn.h;h=3facb922e6685f5dc9344423dd0e3cada5ebda3d;hb=14aba7c1b2b26c8ddbf193c761bd4103997e5dfc;hp=2e0ac8eb4644285e0f3d62e9c7a6bd8404086b3f;hpb=03d971d99481244e7039bc960cfb962795fbe905;p=ngircd-alex.git diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index 2e0ac8eb..3facb922 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -9,11 +9,20 @@ * 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.9 2002/01/02 02:44:36 alex Exp $ + * $Id: conn.h,v 1.12 2002/02/23 00:03:54 alex Exp $ * * conn.h: Verwaltung aller Netz-Verbindungen ("connections") (Header) * * $Log: conn.h,v $ + * Revision 1.12 2002/02/23 00:03:54 alex + * - Ergebnistyp von Conn_GetIdle() und Conn_LastPing() auf "time_t" geaendert. + * + * 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. * @@ -49,6 +58,9 @@ #define __conn_h__ +#include + + typedef INT CONN_ID; typedef struct _Res_Stat @@ -68,10 +80,11 @@ GLOBAL VOID Conn_Handler( INT Timeout ); GLOBAL BOOLEAN Conn_Write( CONN_ID Idx, CHAR *Data, INT Len ); GLOBAL BOOLEAN Conn_WriteStr( CONN_ID Idx, CHAR *Format, ... ); -GLOBAL VOID Conn_Close( CONN_ID Idx, CHAR *Msg ); +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 time_t Conn_GetIdle( CONN_ID Idx ); +GLOBAL time_t Conn_LastPing( CONN_ID Idx ); #endif