Commit 0840e120 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Removed everything which can be set in the server configuration file.

parent 654f4e82
/* /*
* $Id: config.h,v 0.10 1994/01/12 01:25:36 ceder Exp $ * $Id: config.h,v 0.11 1994/01/14 19:09:48 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
* things all the stupid limits you really want to be without, all the * things all the stupid limits you really want to be without, all the
* smart limits that has to be there to make it impossible to crash * smart limits that has to be there to make it impossible to crash
* the server, and lots of constants and configuration options. * the server, and lots of constants and configuration options.
*
* Almost all of this can currently be set in a configuration file.
* There is normally no reason to change anything in this file.
*/ */
#define DEBUG /* We're still debugging and want traces. */ #define DEBUG /* We're still debugging and want traces. */
...@@ -49,17 +52,6 @@ ...@@ -49,17 +52,6 @@
#define kom_errout stdout #define kom_errout stdout
/*
* Security options (these must be #defines since they are used inside a
* 'const' definition in kom-types.c).
*/
#define ANYONE_CAN_CREATE_NEW_PERSONS TRUE /* Can a created person */
/* create other persons? */
#define CREATE_PERSON_BEFORE_LOGIN TRUE /* Can a person create himself? */
#define ANYONE_CAN_CREATE_NEW_CONFS TRUE
#define DEFAULT_CHANGE_NAME TRUE /* Everyone is normally allowed */
/* to change their own name. */
/* /*
* The following are constants which can not be changed without rewriting * The following are constants which can not be changed without rewriting
* some of the code. * some of the code.
...@@ -68,75 +60,11 @@ ...@@ -68,75 +60,11 @@
* between server and clients. */ * between server and clients. */
/* Where to save things. These are used by ramkomd. */
extern const char *DEFAULT_DBASE_DIR; extern const char *DEFAULT_DBASE_DIR;
extern const char *DATAFILE_NAME;
extern const char *BACKUPFILE_NAME;
extern const char *TEXTFILE_NAME;
extern const char *STATISTIC_NAME;
extern const char *PID_NAME;
extern const char *MEMUSE_NAME;
extern const char *CONFIG_FILE; extern const char *CONFIG_FILE;
/* Communications */ /* Communications */
extern const char * DEFAULT_CLIENT_SERVICE;
extern const char * DEFAULT_MUX_SERVICE;
#if 0
extern const int IN_CLIENT_PORT; /* Which port does LysKOM listen to? */
extern const int IN_MUX_PORT; /* Which port does LysKOM listen to? */
#endif
/*
* The following should always be true:
* SYNCTIMEOUT <= GARBTIMEOUT <= TIMEOUT
* Times in milliseconds.
*/
extern const int TIMEOUT; /* Timeout to select() when totally idle. */
extern const int GARBTIMEOUT; /* Timeout to select() when garbing texts
but not syncing. */
extern const int SYNCTIMEOUT; /* Timeout to select() when syncing. */
extern const int GARB_INTERVAL; /* In minutes. */
extern const int SYNC_INTERVAL; /* In minutes. */
extern const int SYNC_RETRY_INTERVAL; /* In minutes. */
/* Size of the cache. (only applies to diskomd). */
extern const int CACHE_CONFERENCES;
extern const int CACHE_PERSONS;
extern const int CACHE_TEXT_STATS;
/* String limits */
extern const int CONF_NAME_LEN; /* Conference (and Person) name */
extern const int PWD_LEN; /* Password. It is not guaranteed that all
chars are significant. */
extern const int WHAT_DO_LEN; /* what_am_i_doing */
extern const int USERNAME_LEN; /* Max login-id from clients */
extern const int TEXT_LEN; /* Max len of a text. */
extern const int BROADCAST_LEN; /* Max len of a broadcast message */
extern const int REGEXP_LEN; /* Max len of regexp. */
/* Text_stat limits */
extern const int MAX_MARKS_PERSON; /* Max marks per person */
extern const int MAX_MARKS_TEXT; /* Max marks per text */
extern const int MAX_RECIPIENTS; /* Max recipients/cc_recipients per text */
extern const int MAX_COMM; /* Max number of comments to a text */
extern const int MAX_FOOT; /* Max number of footnotes to a text */
extern const int MAX_CREA_MISC; /* Sum of recipients, cc_recipients, comm_to
* and footn_to must not exceed MAX_CREA_MISC
* when the text is created. */
/*
* Some other limits
*/
/* /*
* MAX_NO_OF_CONNECTIONS must be small enough. Each connection takes one * MAX_NO_OF_CONNECTIONS must be small enough. Each connection takes one
* file descriptor, and it is important that there are a few descriptors * file descriptor, and it is important that there are a few descriptors
...@@ -160,8 +88,8 @@ extern const int MAX_CREA_MISC; /* Sum of recipients, cc_recipients, comm_to ...@@ -160,8 +88,8 @@ extern const int MAX_CREA_MISC; /* Sum of recipients, cc_recipients, comm_to
* time beeing. (If you need more connections you can run a mux. Send * time beeing. (If you need more connections you can run a mux. Send
* mail to kom@lysator.liu.se for more info.) * mail to kom@lysator.liu.se for more info.)
* *
* Machines where less or more files are open should set this in their * Machines where less or more files are open should set this in the
* m-config.h files. * configure script.
*/ */
#ifndef PROTECTED_FDS #ifndef PROTECTED_FDS
...@@ -180,24 +108,5 @@ extern int MAX_NO_OF_CONNECTIONS; ...@@ -180,24 +108,5 @@ extern int MAX_NO_OF_CONNECTIONS;
extern const int MAX_NO_OF_CONNECTIONS; extern const int MAX_NO_OF_CONNECTIONS;
#endif #endif
extern const int MARK_AS_READ_CHUNK; /* You can't mark more than this many
* texts as read in one call. */
/*
* Max number of nested super_confs a message will be forwarded before
* the server gives up.
*/
extern const int MAX_SUPER_CONF_LOOP;
extern const int DEFAULT_NICE; /* Number of days a text normally lives. */
/* Max entries in the per-client transmit queue */
extern const int MAXQUEUEDSIZE;
/* Max entries in the per-client transmit queue to send at any one time */
extern const int MAXDEQUEUELEN;
/* What is whitespace? */ /* What is whitespace? */
extern const unsigned char *WHITESPACE; extern const unsigned char *WHITESPACE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment