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

Function InitializeNetworkPools

src/network/network.cpp:582–587  ·  view source on GitHub ↗

* Resets the pools used for network clients, and the admin pool if needed. * @param close_admins Whether the admin pool has to be cleared as well. */

Source from the content-addressed store, hash-verified

580 * @param close_admins Whether the admin pool has to be cleared as well.
581 */
582static void InitializeNetworkPools(bool close_admins = true)
583{
584 PoolTypes to_clean{PoolType::NetworkClient};
585 if (close_admins) to_clean.Set(PoolType::NetworkAdmin);
586 PoolBase::Clean(to_clean);
587}
588
589/**
590 * Close current connections.

Callers 2

NetworkCloseFunction · 0.85
NetworkInitializeFunction · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected