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

Function NetworkAdminClientError

src/network/network_admin.cpp:923–930  ·  view source on GitHub ↗

* Notify the admin network of a client error (if they have opt in for the respective update). * @param client_id the client that made the error. * @param error_code the error that was caused. */

Source from the content-addressed store, hash-verified

921 * @param error_code the error that was caused.
922 */
923void NetworkAdminClientError(ClientID client_id, NetworkErrorCode error_code)
924{
925 for (ServerNetworkAdminSocketHandler *as : ServerNetworkAdminSocketHandler::IterateActive()) {
926 if (as->update_frequency[ADMIN_UPDATE_CLIENT_INFO].Test(AdminUpdateFrequency::Automatic)) {
927 as->SendClientError(client_id, error_code);
928 }
929 }
930}
931
932/**
933 * Notify the admin network of a new company.

Callers 3

CloseConnectionMethod · 0.85
SendErrorMethod · 0.85
Receive_CLIENT_ERRORMethod · 0.85

Calls 2

TestMethod · 0.80
SendClientErrorMethod · 0.80

Tested by

no test coverage detected