diff options
author | rubidium42 <rubidium42@users.noreply.github.com> | 2021-04-29 16:43:13 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-04-29 20:12:11 +0200 |
commit | a61696d6c565ff92c6604b12eefe36198d094056 (patch) | |
tree | 00b97ce4ada979ebf61e6c6c273a187bb0da67ee /src/network/network_internal.h | |
parent | be37a2cab831cb645ef0f51dbcc944bd750f6926 (diff) | |
download | openttd-a61696d6c565ff92c6604b12eefe36198d094056.tar.xz |
Change: [Network] Encapsulate logic about the connection string to the network code (#23)
Diffstat (limited to 'src/network/network_internal.h')
-rw-r--r-- | src/network/network_internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/network_internal.h b/src/network/network_internal.h index c64eac795..ff3c8c22d 100644 --- a/src/network/network_internal.h +++ b/src/network/network_internal.h @@ -119,4 +119,8 @@ StringID GetNetworkErrorMsg(NetworkErrorCode err); bool NetworkFindName(char *new_name, const char *last); const char *GenerateCompanyPasswordHash(const char *password, const char *password_server_id, uint32 password_game_seed); +void NetworkClientConnectGame(NetworkAddress &address, CompanyID join_as, const char *join_server_password = nullptr, const char *join_company_password = nullptr); +NetworkAddress ParseConnectionString(const std::string &connection_string, int default_port); +NetworkAddress ParseGameConnectionString(CompanyID *company, const std::string &connection_string, int default_port); + #endif /* NETWORK_INTERNAL_H */ |