summaryrefslogtreecommitdiff
path: root/src/network/network_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-20 01:32:06 +0000
committerrubidium <rubidium@openttd.org>2009-01-20 01:32:06 +0000
commit5f3772a42c322a99d2ea57b6c97b76fceccbb781 (patch)
treef14ce239c04d4b6e3d7f4dbe6723e777a42cc03f /src/network/network_func.h
parent6e1af6a051b5129c0703dd654794427094d672c8 (diff)
downloadopenttd-5f3772a42c322a99d2ea57b6c97b76fceccbb781.tar.xz
(svn r15157) -Codechange: wrap the hostname/ip and port into a single structure so we can pass either one of them and not convert an ip to a string and then back again.
Diffstat (limited to 'src/network/network_func.h')
-rw-r--r--src/network/network_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_func.h b/src/network/network_func.h
index db3de7f8f..c2de52ca7 100644
--- a/src/network/network_func.h
+++ b/src/network/network_func.h
@@ -32,11 +32,11 @@ void NetworkGameLoop();
void NetworkUDPGameLoop();
void NetworkUDPCloseAll();
void ParseConnectionString(const char **company, const char **port, char *connection_string);
-void NetworkStartDebugLog(const char *hostname, uint16 port);
+void NetworkStartDebugLog(NetworkAddress address);
void NetworkPopulateCompanyStats(NetworkCompanyStats *stats);
void NetworkUpdateClientInfo(ClientID client_id);
-void NetworkClientConnectGame(const char *host, uint16 port);
+void NetworkClientConnectGame(NetworkAddress address);
void NetworkClientSendRcon(const char *password, const char *command);
void NetworkClientSendChat(NetworkAction action, DestType type, int dest, const char *msg, int64 data = 0);
void NetworkClientSetPassword(const char *password);