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