X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconn.h;h=232c324bd8d73ef9e24f84bd13fc634de44c1581;hp=0b13896347d70f0d7936779f55ca8d5e4e481d74;hb=df0eb17172ee27c9584991166b5832218924f502;hpb=ca33cbda05902b0009058d369f88c0a7a43b1bbe diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index 0b138963..232c324b 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -9,7 +9,7 @@ * 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.13 2002/03/12 14:37:52 alex Exp $ + * $Id: conn.h,v 1.18 2002/10/10 15:00:33 alex Exp $ * * conn.h: Verwaltung aller Netz-Verbindungen ("connections") (Header) */ @@ -24,28 +24,28 @@ typedef INT CONN_ID; -typedef struct _Res_Stat -{ - INT pid; /* PID des Child-Prozess */ - INT pipe[2]; /* Pipe fuer IPC */ -} RES_STAT; +GLOBAL VOID Conn_Init PARAMS((VOID )); +GLOBAL VOID Conn_Exit PARAMS(( VOID )); -GLOBAL VOID Conn_Init( VOID ); -GLOBAL VOID Conn_Exit( VOID ); +GLOBAL BOOLEAN Conn_NewListener PARAMS(( CONST UINT Port )); -GLOBAL BOOLEAN Conn_NewListener( CONST INT Port ); +GLOBAL VOID Conn_Handler PARAMS(( VOID )); -GLOBAL VOID Conn_Handler( INT Timeout ); +GLOBAL BOOLEAN Conn_Write PARAMS(( CONN_ID Idx, CHAR *Data, INT Len )); +GLOBAL BOOLEAN Conn_WriteStr PARAMS(( CONN_ID Idx, CHAR *Format, ... )); -GLOBAL BOOLEAN Conn_Write( CONN_ID Idx, CHAR *Data, INT Len ); -GLOBAL BOOLEAN Conn_WriteStr( CONN_ID Idx, CHAR *Format, ... ); +GLOBAL VOID Conn_Close PARAMS(( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformClient )); -GLOBAL VOID Conn_Close( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformClient ); +GLOBAL VOID Conn_UpdateIdle PARAMS(( CONN_ID Idx )); +GLOBAL time_t Conn_GetIdle PARAMS(( CONN_ID Idx )); +GLOBAL time_t Conn_LastPing PARAMS(( CONN_ID Idx )); -GLOBAL VOID Conn_UpdateIdle( CONN_ID Idx ); -GLOBAL time_t Conn_GetIdle( CONN_ID Idx ); -GLOBAL time_t Conn_LastPing( CONN_ID Idx ); +GLOBAL VOID Conn_SetPenalty PARAMS(( CONN_ID Idx, time_t Seconds )); +GLOBAL VOID Conn_ResetPenalty PARAMS(( CONN_ID Idx )); + + +GLOBAL INT Conn_MaxFD; #endif