aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/ficsmain.h
blob: 0e57d7b67824f3c0585596052b6d50b507ab5ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* ficsmain.h
 *
 */

/*
    fics - An internet chess server.
    Copyright (C) 1993  Richard V. Nash

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
*/

/* Revision history:
   name		email		yy/mm/dd	Change
   Richard Nash	              	93/10/22	Created
*/

#ifndef _FICSMAIN_H
#define _FICSMAIN_H

/* Heartbead functions occur approx in this time, including checking for
 * new connections and decrementing timeleft counters. */
#define HEARTBEATTIME 2

/* Number of seconds that an idle connection can stand at login or password
 * prompt. */
#define MAX_LOGIN_IDLE 120

/* Players who have been idle for more than 1 hour is logged out */
#define MAX_IDLE_TIME 3600

/* This is the socket that the current command came in on */
extern int current_socket;

#define DEFAULT_PROMPT "fics% "

#define MESS_WELCOME "welcome"
#define MESS_LOGIN "login"
#define MESS_LOGOUT "logout"
#define MESS_MOTD "motd"
#define MESS_ADMOTD "admotd"
#define MESS_UNREGISTERED "unregistered"

#define STATS_MESSAGES "messages"
#define STATS_LOGONS "logons"
#define STATS_GAMES "games"
#define STATS_JOURNAL "journal"

/* Arguments */
extern int port;
extern int withConsole;

#endif /* _FICSMAIN_H */