/[LeafOK_CVS]/pvpgn-1.7.4/src/d2dbs/setup.h
ViewVC logotype

Contents of /pvpgn-1.7.4/src/d2dbs/setup.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Tue Jun 6 03:41:38 2006 UTC (19 years, 9 months ago) by sysadm
Branch: GNU, MAIN
CVS Tags: arelease, HEAD
Changes since 1.1: +0 -0 lines
Content type: text/x-chdr
Error occurred while calculating annotation data.
no message

1 /*
2 * Copyright (C) 2001 sousou (liupeng.cs@263.net)
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 #ifndef WIN32
26 typedef unsigned int BOOL;
27 #endif
28
29 #define TRUE 1
30 #define FALSE 0
31 #define tf(a) ((a)?1:0)
32 #define SELECT_TIME_OUT 20000
33 #define kBufferSize (1024*20)
34 #define kMaxPacketLength (1024*5)
35 #define MAX_GAMEPASS_LEN 16
36 #define MAX_GAMEDESC_LEN 32
37
38 #define MAX_NAME_LEN 16
39 #define MAX_CHARNAME_LEN 16
40 #define MAX_ACCTNAME_LEN 16
41 #define MAX_GAMENAME_LEN 16
42 #define MAX_REALMNAME_LEN 32
43
44 #define DEFAULT_LOG_FILE "/usr/local/var/d2dbs.log"
45 #define DEFAULT_LOG_FILE_GS "/usr/local/var/d2dbs-gs.log"
46 #define DEFAULT_LOG_LEVELS "info,warn,error"
47 #define D2DBS_CHARSAVE_DIR "/usr/local/var/charsave"
48 #define D2DBS_CHARINFO_DIR "/usr/local/var/charinfo"
49 #define D2DBS_CHARSAVEBAK_DIR "/usr/local/var/bak/charsave"
50 #define D2DBS_CHARINFOBAK_DIR "/usr/local/var/bak/charinfo"
51 #define D2DBS_LADDER_DIR "/usr/local/var/ladders"
52 #ifndef D2DBS_DEFAULT_CONF_FILE
53 # define D2DBS_DEFAULT_CONF_FILE "conf/d2dbs.conf"
54 #endif
55 #define DEFAULT_MEMLOG_FILE "/tmp/d2dbs-mem.log"
56 #define DEFAULT_LISTEN_PORT 6114
57 #define D2DBS_SERVER_ADDRS "0.0.0.0"
58 #define D2GS_SERVER_LIST "192.168.0.1"
59 #define LOG_LEVEL LOG_MSG
60 #define DEFAULT_GS_MAX 256
61 #define DEFAULT_SHUTDOWN_DELAY 300
62 #define DEFAULT_SHUTDOWN_DECR 60
63 #define DEFAULT_IDLETIME 300
64 #define DEFAULT_KEEPALIVE_INTERVAL 60
65 #define DEFAULT_TIMEOUT_CHECKINTERVAL 60
66 #define DEFAULT_LADDERUPDATE_THRESHOLD 0
67
68 #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1