OpenTTD Source 20250523-master-g321f7e8683
|
Configuration of the connection strings for network stuff using environment variables. More...
Go to the source code of this file.
Functions | |
std::string_view | NetworkCoordinatorConnectionString () |
Get the connection string for the game coordinator from the environment variable OTTD_COORDINATOR_CS, or when it has not been set a hard coded default DNS hostname of the production server. | |
std::string_view | NetworkStunConnectionString () |
Get the connection string for the STUN server from the environment variable OTTD_STUN_CS, or when it has not been set a hard coded default DNS hostname of the production server. | |
std::string_view | NetworkContentServerConnectionString () |
Get the connection string for the content server from the environment variable OTTD_CONTENT_SERVER_CS, or when it has not been set a hard coded default DNS hostname of the production server. | |
std::string_view | NetworkContentMirrorUriString () |
Get the URI string for the content mirror from the environment variable OTTD_CONTENT_MIRROR_URI, or when it has not been set a hard coded URI of the production server. | |
std::string_view | NetworkSurveyUriString () |
Get the URI string for the survey from the environment variable OTTD_SURVEY_URI, or when it has not been set a hard coded URI of the production server. | |
Configuration of the connection strings for network stuff using environment variables.
Definition in file config.cpp.
std::string_view NetworkContentMirrorUriString | ( | ) |
Get the URI string for the content mirror from the environment variable OTTD_CONTENT_MIRROR_URI, or when it has not been set a hard coded URI of the production server.
Definition at line 53 of file config.cpp.
References GetEnv().
Referenced by ClientNetworkContentSocketHandler::DownloadSelectedContentHTTP().
std::string_view NetworkContentServerConnectionString | ( | ) |
Get the connection string for the content server from the environment variable OTTD_CONTENT_SERVER_CS, or when it has not been set a hard coded default DNS hostname of the production server.
Definition at line 43 of file config.cpp.
References GetEnv().
Referenced by ClientNetworkContentSocketHandler::Connect().
std::string_view NetworkCoordinatorConnectionString | ( | ) |
Get the connection string for the game coordinator from the environment variable OTTD_COORDINATOR_CS, or when it has not been set a hard coded default DNS hostname of the production server.
Definition at line 23 of file config.cpp.
References GetEnv().
std::string_view NetworkStunConnectionString | ( | ) |
Get the connection string for the STUN server from the environment variable OTTD_STUN_CS, or when it has not been set a hard coded default DNS hostname of the production server.
Definition at line 33 of file config.cpp.
References GetEnv().
Referenced by ClientNetworkStunSocketHandler::Connect().
std::string_view NetworkSurveyUriString | ( | ) |
Get the URI string for the survey from the environment variable OTTD_SURVEY_URI, or when it has not been set a hard coded URI of the production server.
Definition at line 63 of file config.cpp.
References GetEnv().
Referenced by NetworkSurveyHandler::Transmit().