diff options
Diffstat (limited to 'src/network/network_admin.h')
-rw-r--r-- | src/network/network_admin.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/network_admin.h b/src/network/network_admin.h index 01e00e334..cbb058655 100644 --- a/src/network/network_admin.h +++ b/src/network/network_admin.h @@ -96,6 +96,14 @@ public: */ #define FOR_ALL_ADMIN_SOCKETS(var) FOR_ALL_ADMIN_SOCKETS_FROM(var, 0) +/** + * Iterate over all the active sockets. + * @param var The variable to iterate with. + */ +#define FOR_ALL_ACTIVE_ADMIN_SOCKETS(var) \ + FOR_ALL_ADMIN_SOCKETS(var) \ + if (var->GetAdminStatus() == ADMIN_STATUS_ACTIVE) + void NetworkAdminClientInfo(const NetworkClientSocket *cs, bool new_client = false); void NetworkAdminClientUpdate(const NetworkClientInfo *ci); void NetworkAdminClientQuit(ClientID client_id); |