X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconn.h;h=bc1c18600d132a15150c9fefab9f98db108c1305;hp=7cbe36351ab8275fa0025531fad6f0da71061ba6;hb=7b6cfc17c428b9c9b58fcb9204337d5c4329f98b;hpb=5fefe1a3e6fcdfb4fa4ceddae89dc8b2814ebb49 diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index 7cbe3635..bc1c1860 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -1,22 +1,17 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001 by Alexander Barton (alex@barton.de) + * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) * * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen * der GNU General Public License (GPL), wie von der Free Software Foundation * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2 * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version. * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste - * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS. + * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conn.h,v 1.1 2001/12/12 17:18:38 alex Exp $ + * $Id: conn.h,v 1.17 2002/08/26 00:03:15 alex Exp $ * * conn.h: Verwaltung aller Netz-Verbindungen ("connections") (Header) - * - * $Log: conn.h,v $ - * Revision 1.1 2001/12/12 17:18:38 alex - * - Modul zur Verwaltung aller Netzwerk-Verbindungen begonnen. - * */ @@ -24,12 +19,32 @@ #define __conn_h__ -GLOBAL VOID Conn_Init( VOID ); -GLOBAL VOID Conn_Exit( VOID ); +#include + + +typedef INT CONN_ID; + + +GLOBAL VOID Conn_Init PARAMS((VOID )); +GLOBAL VOID Conn_Exit PARAMS(( VOID )); + +GLOBAL BOOLEAN Conn_NewListener PARAMS(( CONST UINT Port )); + +GLOBAL VOID Conn_Handler PARAMS(( VOID )); + +GLOBAL BOOLEAN Conn_Write PARAMS(( CONN_ID Idx, CHAR *Data, INT Len )); +GLOBAL BOOLEAN Conn_WriteStr PARAMS(( CONN_ID Idx, CHAR *Format, ... )); + +GLOBAL VOID Conn_Close PARAMS(( 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_SetPenalty PARAMS(( CONN_ID Idx, time_t Seconds )); -GLOBAL BOOLEAN Conn_New_Listener( CONST INT Port ); -GLOBAL VOID Conn_Handler( VOID ); +GLOBAL INT Conn_MaxFD; #endif