00001 /* $Id: config.h 23623 2011-12-19 21:00:32Z truebrain $ */ 00002 00003 /* 00004 * This file is part of OpenTTD. 00005 * 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. 00006 * 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. 00007 * 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/>. 00008 */ 00009 00014 #ifndef NETWORK_CORE_CONFIG_H 00015 #define NETWORK_CORE_CONFIG_H 00016 00018 static const char * const NETWORK_MASTER_SERVER_HOST = "master.openttd.org"; 00020 static const char * const NETWORK_CONTENT_SERVER_HOST = "content.openttd.org"; 00022 static const char * const NETWORK_CONTENT_MIRROR_HOST = "binaries.openttd.org"; 00024 static const char * const NETWORK_CONTENT_MIRROR_URL = "/bananas"; 00026 static const char * const NETWORK_MASTER_SERVER_WELCOME_MESSAGE = "OpenTTDRegister"; 00027 00028 static const uint16 NETWORK_MASTER_SERVER_PORT = 3978; 00029 static const uint16 NETWORK_CONTENT_SERVER_PORT = 3978; 00030 static const uint16 NETWORK_CONTENT_MIRROR_PORT = 80; 00031 static const uint16 NETWORK_DEFAULT_PORT = 3979; 00032 static const uint16 NETWORK_ADMIN_PORT = 3977; 00033 static const uint16 NETWORK_DEFAULT_DEBUGLOG_PORT = 3982; 00034 00035 static const uint16 SEND_MTU = 1460; 00036 00037 static const byte NETWORK_GAME_ADMIN_VERSION = 1; 00038 static const byte NETWORK_GAME_INFO_VERSION = 4; 00039 static const byte NETWORK_COMPANY_INFO_VERSION = 6; 00040 static const byte NETWORK_MASTER_SERVER_VERSION = 2; 00041 00042 static const uint NETWORK_NAME_LENGTH = 80; 00043 static const uint NETWORK_COMPANY_NAME_LENGTH = 128; 00044 static const uint NETWORK_HOSTNAME_LENGTH = 80; 00045 static const uint NETWORK_SERVER_ID_LENGTH = 33; 00046 static const uint NETWORK_REVISION_LENGTH = 15; 00047 static const uint NETWORK_PASSWORD_LENGTH = 33; 00048 static const uint NETWORK_CLIENTS_LENGTH = 200; 00049 static const uint NETWORK_CLIENT_NAME_LENGTH = 25; 00050 static const uint NETWORK_RCONCOMMAND_LENGTH = 500; 00051 static const uint NETWORK_GAMESCRIPT_JSON_LENGTH = 1450; 00052 static const uint NETWORK_CHAT_LENGTH = 900; 00053 00054 static const uint NETWORK_GRF_NAME_LENGTH = 80; 00055 00061 static const uint NETWORK_MAX_GRF_COUNT = 62; 00062 00063 static const uint NETWORK_NUM_LANGUAGES = 36; 00064 00073 static const uint NETWORK_NUM_LANDSCAPES = 4; 00074 00075 #endif /* NETWORK_CORE_CONFIG_H */