OpenTTD: src/network/core/config.h Source File

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

config.h
Go to the documentation of this file.
1 /* $Id: config.h 25590 2013-07-12 17:15:13Z planetmaker $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD 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, version 2.
6 * OpenTTD 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.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
9
14 #ifndef NETWORK_CORE_CONFIG_H
15 #define NETWORK_CORE_CONFIG_H
16
18 static const char * const NETWORK_MASTER_SERVER_HOST = "master.openttd.org";
20 static const char * const NETWORK_CONTENT_SERVER_HOST = "content.openttd.org";
22 static const char * const NETWORK_CONTENT_MIRROR_HOST = "binaries.openttd.org";
24 static const char * const NETWORK_CONTENT_MIRROR_URL = "/bananas";
26 static const char * const NETWORK_MASTER_SERVER_WELCOME_MESSAGE = "OpenTTDRegister";
27
28 static const uint16 NETWORK_MASTER_SERVER_PORT = 3978;
29 static const uint16 NETWORK_CONTENT_SERVER_PORT = 3978;
30 static const uint16 NETWORK_CONTENT_MIRROR_PORT = 80;
31 static const uint16 NETWORK_DEFAULT_PORT = 3979;
32 static const uint16 NETWORK_ADMIN_PORT = 3977;
33 static const uint16 NETWORK_DEFAULT_DEBUGLOG_PORT = 3982;
34
35 static const uint16 SEND_MTU = 1460;
36
37 static const byte NETWORK_GAME_ADMIN_VERSION = 1;
38 static const byte NETWORK_GAME_INFO_VERSION = 4;
39 static const byte NETWORK_COMPANY_INFO_VERSION = 6;
40 static const byte NETWORK_MASTER_SERVER_VERSION = 2;
41
42 static const uint NETWORK_NAME_LENGTH = 80;
43 static const uint NETWORK_COMPANY_NAME_LENGTH = 128;
44 static const uint NETWORK_HOSTNAME_LENGTH = 80;
45 static const uint NETWORK_SERVER_ID_LENGTH = 33;
46 static const uint NETWORK_REVISION_LENGTH = 15;
47 static const uint NETWORK_PASSWORD_LENGTH = 33;
48 static const uint NETWORK_CLIENTS_LENGTH = 200;
49 static const uint NETWORK_CLIENT_NAME_LENGTH = 25;
50 static const uint NETWORK_RCONCOMMAND_LENGTH = 500;
51 static const uint NETWORK_GAMESCRIPT_JSON_LENGTH = SEND_MTU - 3;
52 static const uint NETWORK_CHAT_LENGTH = 900;
53
54 static const uint NETWORK_GRF_NAME_LENGTH = 80;
55
61 static const uint NETWORK_MAX_GRF_COUNT = 62;
62
63 static const uint NETWORK_NUM_LANGUAGES = 36;
64
73 static const uint NETWORK_NUM_LANDSCAPES = 4;
74
75 #endif /* NETWORK_CORE_CONFIG_H */