summaryrefslogtreecommitdiff
path: root/src/network/network_internal.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-04-30 11:34:47 +0200
committerGitHub <noreply@github.com>2021-04-30 11:34:47 +0200
commit69118d063f9316e10128580f790175cd2779abdc (patch)
tree95f0c7c736c6c14a6419c07bbb2c9fac32e0a012 /src/network/network_internal.h
parentf00564eeb20a09647f6f52b4ca5b39cb1e6a59aa (diff)
downloadopenttd-69118d063f9316e10128580f790175cd2779abdc.tar.xz
Change: use TCP for everything except for master-server and initial server scan (#9130)
This means that pressing Refresh button and adding servers manually now uses TCP. The master-server and initial scan are still UDP as they will be replaced by Game Coordinator; no need to change this now. If we query a server that is too old, show a proper warning to the user informing him the server is too old.
Diffstat (limited to 'src/network/network_internal.h')
-rw-r--r--src/network/network_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_internal.h b/src/network/network_internal.h
index ff3c8c22d..683c954e8 100644
--- a/src/network/network_internal.h
+++ b/src/network/network_internal.h
@@ -87,10 +87,10 @@ extern uint8 _network_reconnect;
extern CompanyMask _network_company_passworded;
-void NetworkTCPQueryServer(NetworkAddress address);
+void NetworkTCPQueryServer(NetworkAddress address, bool request_company_info = false);
void GetBindAddresses(NetworkAddressList *addresses, uint16 port);
-void NetworkAddServer(const char *b);
+struct NetworkGameList *NetworkAddServer(const std::string &connection_string);
void NetworkRebuildHostList();
void UpdateNetworkGameWindow();