# config.h

Go to the documentation of this file.

    00001 /* $Id: config.h 18994 2010-02-03 18:42:23Z rubidium $ */
    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 #define NETWORK_MASTER_SERVER_HOST "master.openttd.org"
    00019
    00020 #define NETWORK_CONTENT_SERVER_HOST "content.openttd.org"
    00021
    00022 #define NETWORK_CONTENT_MIRROR_HOST "binaries.openttd.org"
    00023
    00024 #define NETWORK_CONTENT_MIRROR_URL "/bananas"
    00025
    00026 #define NETWORK_MASTER_SERVER_WELCOME_MESSAGE "OpenTTDRegister"
    00027
    00028 enum {
    00029   NETWORK_MASTER_SERVER_PORT    = 3978,
    00030   NETWORK_CONTENT_SERVER_PORT   = 3978,
    00031   NETWORK_CONTENT_MIRROR_PORT   =   80,
    00032   NETWORK_DEFAULT_PORT          = 3979,
    00033   NETWORK_DEFAULT_DEBUGLOG_PORT = 3982,
    00034
    00035   SEND_MTU                      = 1460,
    00036
    00037   NETWORK_GAME_INFO_VERSION     =    4,
    00038   NETWORK_COMPANY_INFO_VERSION  =    6,
    00039   NETWORK_MASTER_SERVER_VERSION =    2,
    00040
    00041   NETWORK_NAME_LENGTH           =   80,
    00042   NETWORK_COMPANY_NAME_LENGTH   =   31,
    00043   NETWORK_HOSTNAME_LENGTH       =   80,
    00044   NETWORK_SERVER_ID_LENGTH      =   33,
    00045   NETWORK_REVISION_LENGTH       =   15,
    00046   NETWORK_PASSWORD_LENGTH       =   33,
    00047   NETWORK_CLIENTS_LENGTH        =  200,
    00048   NETWORK_CLIENT_NAME_LENGTH    =   25,
    00049   NETWORK_RCONCOMMAND_LENGTH    =  500,
    00050   NETWORK_CHAT_LENGTH           =  900,
    00051
    00052   NETWORK_GRF_NAME_LENGTH       =   80,
    00053
    00058   NETWORK_MAX_GRF_COUNT         =   62,
    00059
    00060   NETWORK_NUM_LANGUAGES         =   36,
    00061
    00069   NETWORK_NUM_LANDSCAPES        =    4,
    00070 };
    00071
    00072 #endif /* NETWORK_CORE_CONFIG_H */