]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/defines.h
Remove INT, LONG, BOOLEAN, STATIC, CONST, CHAR datatypes.
[ngircd-alex.git] / src / ngircd / defines.h
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001-2003 by Alexander Barton (alex@barton.de)
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * Please read the file COPYING, README and AUTHORS for more information.
10  *
11  * $Id: defines.h,v 1.51 2005/03/19 18:43:48 fw Exp $
12  *
13  * Global defines of ngIRCd.
14  */
15
16 #ifndef __defines_h__
17 #define __defines_h__
18
19
20 #define NONE -1
21
22 #define FNAME_LEN 256                   /* max. length of file name */
23
24 #define LINE_LEN 256                    /* max. length of a line in the configuration file */
25
26 #define HOST_LEN 256                    /* max. lenght of fully qualified host names */
27
28 #define MAX_LISTEN_PORTS 16             /* max. count of listening ports */
29
30 #define MAX_OPERATORS 16                /* max. count of configurable operators */
31
32 #define MAX_SERVERS 16                  /* max. count of configurable servers ("peers") */
33
34 #define MAX_DEFCHANNELS 16              /* max. count of preconfigurable channels */
35
36 #define MAX_SERVICES 8                  /* max. number of configurable services */
37
38 #define CONNECTION_POOL 100             /* size of default connection pool */
39
40 #define CLIENT_ID_LEN 64                /* max. length of an IRC ID; see RFC 2812, 1.1 and 1.2.1 */
41 #define CLIENT_NICK_LEN 10              /* max. nick length; see. RFC 2812, 1.2.1 */
42 #define CLIENT_PASS_LEN 21              /* max. password length */
43 #define CLIENT_USER_LEN 9               /* max. length of user name ("login") */
44 #define CLIENT_NAME_LEN 32              /* max. length of "real names" */
45 #define CLIENT_HOST_LEN 64              /* max. host name length */
46 #define CLIENT_MODE_LEN 8               /* max. lenth of all client modes */
47 #define CLIENT_INFO_LEN 64              /* max. length of server info texts */
48 #define CLIENT_AWAY_LEN 128             /* max. length of away messages */
49 #define CLIENT_FLAGS_LEN 100            /* max. length of client flags */
50
51 #define CHANNEL_NAME_LEN 51             /* max. length of a channel name, see. RFC 2812, 1.3 */
52 #define CHANNEL_MODE_LEN 9              /* max. length of channel modes */
53 #define CHANNEL_TOPIC_LEN 128           /* max. length of a channel topic */
54
55 #define COMMAND_LEN 513                 /* max. IRC command length, see. RFC 2812, 3.2 */
56
57 #define READBUFFER_LEN 2048             /* size of the read buffer of a connection (bytes) */
58 #define WRITEBUFFER_LEN 4096            /* size of the write buffer of a connection (bytes) */
59
60 #ifdef ZLIB
61 #define ZREADBUFFER_LEN 1024            /* compressed read buffer of a connection (bytes) */
62 #define ZWRITEBUFFER_LEN 4096           /* compressed write buffer of a connection (bytes) */
63 #endif
64
65 #define PROTOVER "0210"                 /* implemented IRC protocol version (see RFC 2813, 4.1.1) */
66 #define PROTOIRC "-IRC"                 /* protocol suffix (see RFC 2813, 4.1.1) */
67 #define PROTOIRCPLUS "-IRC+"            /* protokol suffix for IRC+ protocol (see doc/Protocol.txt) */
68
69 #ifdef IRCPLUS
70 # define IRCPLUSFLAGS "CL"              /* standard IRC+ flags */
71 #endif
72
73 #define STARTUP_DELAY 1                 /* delay outgoing connections n seconds after startup */
74 #define RECONNECT_DELAY 3               /* time to delay re-connect attempts (seconds) */
75
76 #define USERMODES "aios"                /* supported user modes */
77 #define CHANMODES "biklImnoPstv"        /* supported channel modes */
78
79 #define CONNECTED true                  /* internal status codes */
80 #define DISCONNECTED false
81
82 #define DEFAULT_AWAY_MSG "Away"         /* away message for users connected to linked servers */
83
84 #define CONFIG_FILE "/ngircd.conf"
85 #define MOTD_FILE "/ngircd.motd"
86 #define MOTD_PHRASE ""
87 #define CHROOT_DIR ""
88 #define PID_FILE ""
89
90 #define ERROR_DIR "/tmp"
91
92 #define MAX_LOG_MSG_LEN 256             /* max. length of a log message */
93
94 #define TOKEN_OUTBOUND -2               /* tag for outbound server links */
95
96 #define NOTICE_TXTPREFIX ""             /* prefix for NOTICEs from the server to users */
97
98 #ifdef RENDEZVOUS
99 #define RENDEZVOUS_TYPE "_ircu._tcp."   /* service type to register with Rendezvous */
100 #endif
101
102
103 #endif
104
105
106 /* -eof- */