2 cbc1e59f 2001-12-12 alex * ngIRCd -- The Next Generation IRC Daemon
3 03d971d9 2002-01-02 alex * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
5 cbc1e59f 2001-12-12 alex * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 cbc1e59f 2001-12-12 alex * der GNU General Public License (GPL), wie von der Free Software Foundation
7 cbc1e59f 2001-12-12 alex * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 cbc1e59f 2001-12-12 alex * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 cbc1e59f 2001-12-12 alex * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 804b1ec4 2001-12-31 alex * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
12 f86083a0 2002-03-27 alex * $Id: conf.h,v 1.14 2002/03/27 16:39:22 alex Exp $
14 cbc1e59f 2001-12-12 alex * conf.h: Konfiguration des ngircd (Header)
18 cbc1e59f 2001-12-12 alex #ifndef __conf_h__
19 cbc1e59f 2001-12-12 alex #define __conf_h__
21 03d971d9 2002-01-02 alex #include <time.h>
23 ff54198f 2002-02-27 alex #include "conn.h"
24 ca33cbda 2002-03-12 alex #include "defines.h"
27 03d971d9 2002-01-02 alex typedef struct _Conf_Oper
29 d67d94ea 2002-03-10 alex CHAR name[CLIENT_PASS_LEN]; /* Name (ID) des IRC-OPs */
30 d67d94ea 2002-03-10 alex CHAR pwd[CLIENT_PASS_LEN]; /* Passwort */
31 03d971d9 2002-01-02 alex } CONF_OPER;
33 03d971d9 2002-01-02 alex typedef struct _Conf_Server
35 d67d94ea 2002-03-10 alex CHAR host[HOST_LEN]; /* Hostname */
36 d67d94ea 2002-03-10 alex CHAR ip[16]; /* IP-Adresse (von Resolver) */
37 d67d94ea 2002-03-10 alex CHAR name[CLIENT_ID_LEN]; /* IRC-Client-ID */
38 d67d94ea 2002-03-10 alex CHAR pwd[CLIENT_PASS_LEN]; /* Passwort */
39 d67d94ea 2002-03-10 alex INT port; /* Server-Port */
40 d67d94ea 2002-03-10 alex INT group; /* Gruppe des Servers */
41 d67d94ea 2002-03-10 alex time_t lasttry; /* Letzter Connect-Versuch */
42 d67d94ea 2002-03-10 alex RES_STAT *res_stat; /* Status des Resolver */
43 03d971d9 2002-01-02 alex } CONF_SERVER;
46 03d971d9 2002-01-02 alex /* Name ("Nick") des Servers */
47 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN];
49 03d971d9 2002-01-02 alex /* Servers-Info-Text */
50 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_ServerInfo[CLIENT_INFO_LEN];
52 ed406b4a 2002-01-03 alex /* Server-Passwort */
53 ed406b4a 2002-01-03 alex GLOBAL CHAR Conf_ServerPwd[CLIENT_PASS_LEN];
55 03d971d9 2002-01-02 alex /* Datei mit MOTD-Text */
56 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_MotdFile[FNAME_LEN];
58 03d971d9 2002-01-02 alex /* Ports, auf denen der Server Verbindungen entgegen nimmt */
59 03d971d9 2002-01-02 alex GLOBAL INT Conf_ListenPorts[MAX_LISTEN_PORTS];
60 03d971d9 2002-01-02 alex GLOBAL INT Conf_ListenPorts_Count;
62 03d971d9 2002-01-02 alex /* Timeouts fuer PING und PONG */
63 03d971d9 2002-01-02 alex GLOBAL INT Conf_PingTimeout;
64 03d971d9 2002-01-02 alex GLOBAL INT Conf_PongTimeout;
66 03d971d9 2002-01-02 alex /* Sekunden zwischen Verbindungsversuchen zu anderen Servern */
67 03d971d9 2002-01-02 alex GLOBAL INT Conf_ConnectRetry;
69 03d971d9 2002-01-02 alex /* Operatoren */
70 03d971d9 2002-01-02 alex GLOBAL CONF_OPER Conf_Oper[MAX_OPERATORS];
71 03d971d9 2002-01-02 alex GLOBAL INT Conf_Oper_Count;
73 03d971d9 2002-01-02 alex /* Server */
74 03d971d9 2002-01-02 alex GLOBAL CONF_SERVER Conf_Server[MAX_SERVERS];
75 03d971d9 2002-01-02 alex GLOBAL INT Conf_Server_Count;
78 cbc1e59f 2001-12-12 alex GLOBAL VOID Conf_Init( VOID );
79 f86083a0 2002-03-27 alex GLOBAL INT Conf_Test( VOID );
80 cbc1e59f 2001-12-12 alex GLOBAL VOID Conf_Exit( VOID );