config.h File Reference

Configuration options of the network stuff. More...

Go to the source code of this file.

Defines

#define NETWORK_MASTER_SERVER_HOST   "master.openttd.org"
 DNS hostname of the masterserver.
#define NETWORK_CONTENT_SERVER_HOST   "content.openttd.org"
 DNS hostname of the content server.
#define NETWORK_CONTENT_MIRROR_HOST   "binaries.openttd.org"
 DNS hostname of the HTTP-content mirror server.
#define NETWORK_CONTENT_MIRROR_URL   "/bananas"
 URL of the HTTP mirror system.
#define NETWORK_MASTER_SERVER_WELCOME_MESSAGE   "OpenTTDRegister"
 Message sent to the masterserver to 'identify' this client as OpenTTD.

Enumerations

enum  {
  NETWORK_MASTER_SERVER_PORT = 3978, NETWORK_CONTENT_SERVER_PORT = 3978, NETWORK_CONTENT_MIRROR_PORT = 80, NETWORK_DEFAULT_PORT = 3979,
  NETWORK_DEFAULT_DEBUGLOG_PORT = 3982, SEND_MTU = 1460, NETWORK_GAME_INFO_VERSION = 4, NETWORK_COMPANY_INFO_VERSION = 6,
  NETWORK_MASTER_SERVER_VERSION = 2, NETWORK_NAME_LENGTH = 80, NETWORK_COMPANY_NAME_LENGTH = 31, NETWORK_HOSTNAME_LENGTH = 80,
  NETWORK_SERVER_ID_LENGTH = 33, NETWORK_REVISION_LENGTH = 15, NETWORK_PASSWORD_LENGTH = 33, NETWORK_CLIENTS_LENGTH = 200,
  NETWORK_CLIENT_NAME_LENGTH = 25, NETWORK_RCONCOMMAND_LENGTH = 500, NETWORK_CHAT_LENGTH = 900, NETWORK_GRF_NAME_LENGTH = 80,
  NETWORK_MAX_GRF_COUNT = 62, NETWORK_NUM_LANGUAGES = 36, NETWORK_NUM_LANDSCAPES = 4
}

Detailed Description

Configuration options of the network stuff.

It is used even when compiling without network support.

Definition in file config.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
NETWORK_MASTER_SERVER_PORT 

The default port of the master server (UDP).

NETWORK_CONTENT_SERVER_PORT 

The default port of the content server (TCP).

NETWORK_CONTENT_MIRROR_PORT 

The default port of the content mirror (TCP).

NETWORK_DEFAULT_PORT 

The default port of the game server (TCP & UDP).

NETWORK_DEFAULT_DEBUGLOG_PORT 

The default port debug-log is sent too (TCP).

SEND_MTU 

Number of bytes we can pack in a single packet.

NETWORK_GAME_INFO_VERSION 

What version of game-info do we use?

NETWORK_COMPANY_INFO_VERSION 

What version of company info is this?

NETWORK_MASTER_SERVER_VERSION 

What version of master-server-protocol do we use?

NETWORK_NAME_LENGTH 

The maximum length of the server name and map name, in bytes including ''.

NETWORK_COMPANY_NAME_LENGTH 

The maximum length of the company name, in bytes including ''.

NETWORK_HOSTNAME_LENGTH 

The maximum length of the host name, in bytes including ''.

NETWORK_SERVER_ID_LENGTH 

The maximum length of the network id of the servers, in bytes including ''.

NETWORK_REVISION_LENGTH 

The maximum length of the revision, in bytes including ''.

NETWORK_PASSWORD_LENGTH 

The maximum length of the password, in bytes including '' (must be >= NETWORK_SERVER_ID_LENGTH).

NETWORK_CLIENTS_LENGTH 

The maximum length for the list of clients that controls a company, in bytes including ''.

NETWORK_CLIENT_NAME_LENGTH 

The maximum length of a client's name, in bytes including ''.

NETWORK_RCONCOMMAND_LENGTH 

The maximum length of a rconsole command, in bytes including ''.

NETWORK_CHAT_LENGTH 

The maximum length of a chat message, in bytes including ''.

NETWORK_GRF_NAME_LENGTH 

Maximum length of the name of a GRF.

NETWORK_MAX_GRF_COUNT 

Maximum number of GRFs that can be sent.

This value is related to number of handles (files) OpenTTD can open. This is currently 64. Two are used for configuration and sound.

NETWORK_NUM_LANGUAGES 

Number of known languages (to the network protocol) + 1 for 'any'.

NETWORK_NUM_LANDSCAPES 

The number of landscapes in OpenTTD.

This number must be equal to NUM_LANDSCAPE, but as this number is used within the network code and that the network code is shared with the masterserver/updater, it has to be declared in here too. In network.cpp there is a compile assertion to check that this NUM_LANDSCAPE is equal to NETWORK_NUM_LANDSCAPES.

Definition at line 28 of file config.h.


Generated on Sat Nov 20 20:59:16 2010 for OpenTTD by  doxygen 1.6.1