Debian Codegraph @

src/d2dbs/setup.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2001 sousou ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18 #ifndef INLCUDED_D2DBS_SETUP_H
19 #define INLCUDED_D2DBS_SETUP_H
20
21 #if !defined(MAX_PATH) && !defined(WIN32)
22 # define MAX_PATH 1024
23 #endif
24
25 #define tf(a) ((a)?1:0)
26 #define SELECT_TIME_OUT 20000
27 constexpr long kBufferSize = 1024L * 20L;
28 #define kMaxPacketLength (1024*5)
29
30 #define DEFAULT_LOG_FILE "/usr/local/var/d2dbs.std::log"
31 #define DEFAULT_LOG_FILE_GS "/usr/local/var/d2dbs-gs.std::log"
32 #define DEFAULT_LOG_LEVELS "info,warn,error"
33 #define D2DBS_CHARSAVE_DIR "/usr/local/var/charsave"
34 #define D2DBS_CHARINFO_DIR "/usr/local/var/charinfo"
35 #define D2DBS_CHARSAVEBAK_DIR "/usr/local/var/bak/charsave"
36 #define D2DBS_CHARINFOBAK_DIR "/usr/local/var/bak/charinfo"
37 #define D2DBS_LADDER_DIR "/usr/local/var/ladders"
38 #ifndef D2DBS_DEFAULT_CONF_FILE
39 # define D2DBS_DEFAULT_CONF_FILE "conf/d2dbs.conf"
40 #endif
41 #define DEFAULT_MEMLOG_FILE "/tmp/d2dbs-mem.std::log"
42 #define DEFAULT_LISTEN_PORT 6114
43 #define D2DBS_SERVER_ADDRS "0.0.0.0"
44 #define D2GS_SERVER_LIST "192.168.0.1"
45 #define LOG_LEVEL LOG_MSG
46 #define DEFAULT_GS_MAX 256
47 #define DEFAULT_SHUTDOWN_DELAY 300
48 #define DEFAULT_SHUTDOWN_DECR 60
49 #define DEFAULT_IDLETIME 300
50 #define DEFAULT_KEEPALIVE_INTERVAL 60
51 #define DEFAULT_TIMEOUT_CHECKINTERVAL 60
52 #define DEFAULT_LADDERUPDATE_THRESHOLD 0
53
54 #endif