MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / NetworkAdminClientUpdate

Function NetworkAdminClientUpdate

src/network/network_admin.cpp:896–903  ·  view source on GitHub ↗

* Notify the admin network of a client update (if they did opt in for the respective update). * @param ci the client info. */

Source from the content-addressed store, hash-verified

894 * @param ci the client info.
895 */
896void NetworkAdminClientUpdate(const NetworkClientInfo *ci)
897{
898 for (ServerNetworkAdminSocketHandler *as : ServerNetworkAdminSocketHandler::IterateActive()) {
899 if (as->update_frequency[ADMIN_UPDATE_CLIENT_INFO].Test(AdminUpdateFrequency::Automatic)) {
900 as->SendClientUpdate(ci);
901 }
902 }
903}
904
905/**
906 * Notify the admin network that a client quit (if they have opt in for the respective update).

Callers 1

NetworkUpdateClientInfoFunction · 0.85

Calls 2

TestMethod · 0.80
SendClientUpdateMethod · 0.80

Tested by

no test coverage detected