diff options
author | rubidium <rubidium@openttd.org> | 2010-10-17 17:37:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-10-17 17:37:26 +0000 |
commit | fe44944f326b08e6b005aef8bfcf546467b5b136 (patch) | |
tree | 5cfe8965da332f4d7299a4f11b86dfe4779a9aa7 /src/network/network_admin.h | |
parent | 901c4a56bd29b687bee0cd7ffa49e8c9a08b9bf9 (diff) | |
download | openttd-fe44944f326b08e6b005aef8bfcf546467b5b136.tar.xz |
(svn r20969) -Add: client info change notification to remote admins (dihedral)
Diffstat (limited to 'src/network/network_admin.h')
-rw-r--r-- | src/network/network_admin.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/network/network_admin.h b/src/network/network_admin.h index bbddf2183..384553081 100644 --- a/src/network/network_admin.h +++ b/src/network/network_admin.h @@ -44,6 +44,11 @@ public: NetworkRecvStatus SendNewGame(); NetworkRecvStatus SendShutdown(); NetworkRecvStatus SendDate(); + NetworkRecvStatus SendClientJoin(ClientID client_id); + NetworkRecvStatus SendClientInfo(const NetworkClientInfo *ci); + NetworkRecvStatus SendClientUpdate(const NetworkClientInfo *ci); + NetworkRecvStatus SendClientQuit(ClientID client_id); + NetworkRecvStatus SendClientError(ClientID client_id, NetworkErrorCode error); static void Send(); static void AcceptConnection(SOCKET s, const NetworkAddress &address); @@ -63,6 +68,10 @@ public: #define FOR_ALL_ADMIN_SOCKETS_FROM(var, start) FOR_ALL_ITEMS_FROM(ServerNetworkAdminSocketHandler, adminsocket_index, var, start) #define FOR_ALL_ADMIN_SOCKETS(var) FOR_ALL_ADMIN_SOCKETS_FROM(var, 0) +void NetworkAdminClientInfo(const NetworkClientInfo *ci, bool new_client = false); +void NetworkAdminClientUpdate(const NetworkClientInfo *ci); +void NetworkAdminClientQuit(ClientID client_id); +void NetworkAdminClientError(ClientID client_id, NetworkErrorCode error_code); void NetworkAdminUpdate(AdminUpdateFrequency freq); #endif /* ENABLE_NETWORK */ |