Blame


1 cbc1e59f 2001-12-12 alex /*
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)
4 cbc1e59f 2001-12-12 alex *
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.
11 cbc1e59f 2001-12-12 alex *
12 f86083a0 2002-03-27 alex * $Id: conf.h,v 1.14 2002/03/27 16:39:22 alex Exp $
13 cbc1e59f 2001-12-12 alex *
14 cbc1e59f 2001-12-12 alex * conf.h: Konfiguration des ngircd (Header)
15 cbc1e59f 2001-12-12 alex */
16 cbc1e59f 2001-12-12 alex
17 cbc1e59f 2001-12-12 alex
18 cbc1e59f 2001-12-12 alex #ifndef __conf_h__
19 cbc1e59f 2001-12-12 alex #define __conf_h__
20 cbc1e59f 2001-12-12 alex
21 03d971d9 2002-01-02 alex #include <time.h>
22 cbc1e59f 2001-12-12 alex
23 ff54198f 2002-02-27 alex #include "conn.h"
24 ca33cbda 2002-03-12 alex #include "defines.h"
25 574ae82c 2001-12-26 alex
26 ff54198f 2002-02-27 alex
27 03d971d9 2002-01-02 alex typedef struct _Conf_Oper
28 03d971d9 2002-01-02 alex {
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;
32 574ae82c 2001-12-26 alex
33 03d971d9 2002-01-02 alex typedef struct _Conf_Server
34 03d971d9 2002-01-02 alex {
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;
44 574ae82c 2001-12-26 alex
45 574ae82c 2001-12-26 alex
46 03d971d9 2002-01-02 alex /* Name ("Nick") des Servers */
47 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN];
48 9856253d 2001-12-30 alex
49 03d971d9 2002-01-02 alex /* Servers-Info-Text */
50 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_ServerInfo[CLIENT_INFO_LEN];
51 9856253d 2001-12-30 alex
52 ed406b4a 2002-01-03 alex /* Server-Passwort */
53 ed406b4a 2002-01-03 alex GLOBAL CHAR Conf_ServerPwd[CLIENT_PASS_LEN];
54 ed406b4a 2002-01-03 alex
55 03d971d9 2002-01-02 alex /* Datei mit MOTD-Text */
56 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_MotdFile[FNAME_LEN];
57 03d971d9 2002-01-02 alex
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;
61 03d971d9 2002-01-02 alex
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;
65 03d971d9 2002-01-02 alex
66 03d971d9 2002-01-02 alex /* Sekunden zwischen Verbindungsversuchen zu anderen Servern */
67 03d971d9 2002-01-02 alex GLOBAL INT Conf_ConnectRetry;
68 03d971d9 2002-01-02 alex
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;
72 03d971d9 2002-01-02 alex
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;
76 03d971d9 2002-01-02 alex
77 03d971d9 2002-01-02 alex
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 );
81 cbc1e59f 2001-12-12 alex
82 cbc1e59f 2001-12-12 alex
83 cbc1e59f 2001-12-12 alex #endif
84 cbc1e59f 2001-12-12 alex
85 cbc1e59f 2001-12-12 alex
86 cbc1e59f 2001-12-12 alex /* -eof- */