14 #ifndef NETWORK_CORE_CONFIG_H 15 #define NETWORK_CORE_CONFIG_H static const uint NETWORK_CLIENT_NAME_LENGTH
The maximum length of a client's name, in bytes including '\0'.
static const uint NETWORK_CLIENTS_LENGTH
The maximum length for the list of clients that controls a company, in bytes including '\0'...
static const byte NETWORK_GAME_ADMIN_VERSION
What version of the admin network do we use?
static const uint NETWORK_GRF_NAME_LENGTH
Maximum length of the name of a GRF.
static const byte NETWORK_MASTER_SERVER_VERSION
What version of master-server-protocol do we use?
static const uint NETWORK_RCONCOMMAND_LENGTH
The maximum length of a rconsole command, in bytes including '\0'.
static const char *const NETWORK_CONTENT_SERVER_HOST
DNS hostname of the content server.
static const char *const NETWORK_MASTER_SERVER_HOST
DNS hostname of the masterserver.
static const uint16 NETWORK_DEFAULT_DEBUGLOG_PORT
The default port debug-log is sent to (TCP)
static const char *const NETWORK_CONTENT_MIRROR_HOST
DNS hostname of the HTTP-content mirror server.
static const byte NETWORK_GAME_INFO_VERSION
What version of game-info do we use?
static const uint NETWORK_CHAT_LENGTH
The maximum length of a chat message, in bytes including '\0'.
static const char *const NETWORK_MASTER_SERVER_WELCOME_MESSAGE
Message sent to the masterserver to 'identify' this client as OpenTTD.
static const uint NETWORK_HOSTNAME_LENGTH
The maximum length of the host name, in bytes including '\0'.
static const uint NETWORK_GAMESCRIPT_JSON_LENGTH
The maximum length of a gamescript json string, in bytes including '\0'. Must not be longer than SEND...
static const uint16 NETWORK_DEFAULT_PORT
The default port of the game server (TCP & UDP)
static const char *const NETWORK_CONTENT_MIRROR_URL
URL of the HTTP mirror system.
static const uint NETWORK_COMPANY_NAME_LENGTH
The maximum length of the company name, in bytes including '\0'.
static const uint16 NETWORK_CONTENT_MIRROR_PORT
The default port of the content mirror (TCP)
static const uint NETWORK_SERVER_ID_LENGTH
The maximum length of the network id of the servers, in bytes including '\0'.
static const uint16 SEND_MTU
Number of bytes we can pack in a single packet.
static const uint NETWORK_NUM_LANGUAGES
Number of known languages (to the network protocol) + 1 for 'any'.
static const uint16 NETWORK_ADMIN_PORT
The default port for admin network.
static const uint NETWORK_NAME_LENGTH
The maximum length of the server name and map name, in bytes including '\0'.
static const uint NETWORK_PASSWORD_LENGTH
The maximum length of the password, in bytes including '\0' (must be >= NETWORK_SERVER_ID_LENGTH) ...
static const uint16 NETWORK_CONTENT_SERVER_PORT
The default port of the content server (TCP)
static const uint NETWORK_NUM_LANDSCAPES
The number of landscapes in OpenTTD.
static const byte NETWORK_COMPANY_INFO_VERSION
What version of company info is this?
static const uint NETWORK_REVISION_LENGTH
The maximum length of the revision, in bytes including '\0'.
static const uint16 NETWORK_MASTER_SERVER_PORT
The default port of the master server (UDP)
static const uint NETWORK_MAX_GRF_COUNT
Maximum number of GRFs that can be sent.