X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconf.h;h=ceea6a52b32e7e53c6cb58118100ea970e4dd00f;hp=1f79fc2effaf6ad33755c65aae16f5a70c39db4d;hb=9856253dc40be19a0e4713b12187732e7420febe;hpb=cbc1e59fb23dd1f2a92bba4188a7ffe87360f046 diff --git a/src/ngircd/conf.h b/src/ngircd/conf.h index 1f79fc2e..ceea6a52 100644 --- a/src/ngircd/conf.h +++ b/src/ngircd/conf.h @@ -9,14 +9,25 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conf.h,v 1.1 2001/12/12 17:18:20 alex Exp $ + * $Id: conf.h,v 1.5 2001/12/30 19:26:11 alex Exp $ * * conf.h: Konfiguration des ngircd (Header) * * $Log: conf.h,v $ + * Revision 1.5 2001/12/30 19:26:11 alex + * - Unterstuetzung fuer die Konfigurationsdatei eingebaut. + * + * Revision 1.4 2001/12/26 22:48:53 alex + * - MOTD-Datei ist nun konfigurierbar und wird gelesen. + * + * Revision 1.3 2001/12/26 14:45:37 alex + * - "Code Cleanups". + * + * Revision 1.2 2001/12/26 03:19:57 alex + * - erste Konfigurations-Variablen definiert: PING/PONG-Timeout. + * * Revision 1.1 2001/12/12 17:18:20 alex * - Modul fuer Server-Konfiguration begonnen. - * */ @@ -24,6 +35,23 @@ #define __conf_h__ +#define FNAME_LEN 256 +#define LISTEN_PORTS 16 + + +GLOBAL CHAR Conf_File[FNAME_LEN]; /* Konfigurationsdatei */ + +GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN]; /* Name ("Nick") des Servers */ + +GLOBAL CHAR Conf_MotdFile[FNAME_LEN]; /* Datei mit MOTD-Text */ + +GLOBAL INT Conf_ListenPorts[LISTEN_PORTS]; /* Ports, auf denen der Server Verbindungen */ +GLOBAL INT Conf_ListenPorts_Count; /* entgegen nimmt sowie deren Anzahl */ + +GLOBAL INT Conf_PingTimeout; /* Ping Timeout */ +GLOBAL INT Conf_PongTimeout; /* Pong Timeout */ + + GLOBAL VOID Conf_Init( VOID ); GLOBAL VOID Conf_Exit( VOID );