X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconn.h;h=2c317ef91ab1486c944720aad1e514126fdc1700;hp=e76a862e4d83203a98453c80647a15c95dd1b5cc;hb=b9f005af75befc6f731456377ea6784e121d227e;hpb=804b1ec4987ed3beb4759cc480b2c6c911627b7e diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index e76a862e..2c317ef9 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -1,6 +1,6 @@ /* * 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 @@ -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.8 2001/12/31 02:18:51 alex Exp $ + * $Id: conn.h,v 1.11 2002/02/11 01:00:50 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. @@ -48,6 +57,12 @@ 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( VOID ); GLOBAL VOID Conn_Exit( VOID ); @@ -59,10 +74,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 INT32 Conn_LastPing( CONN_ID Idx ); #endif