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

Function NetworkInitialize

src/network/network.cpp:630–638  ·  view source on GitHub ↗

Initializes the network (cleans sockets and stuff) */

Source from the content-addressed store, hash-verified

628
629/* Initializes the network (cleans sockets and stuff) */
630static void NetworkInitialize(bool close_admins = true)
631{
632 InitializeNetworkPools(close_admins);
633
634 _sync_frame = 0;
635 _network_first_time = true;
636
637 _network_reconnect = 0;
638}
639
640/** Non blocking connection to query servers for their game info. */
641class TCPQueryConnecter : public TCPServerConnecter {

Callers 3

NetworkClientJoinGameFunction · 0.85
NetworkServerStartFunction · 0.85
NetworkStartUpFunction · 0.85

Calls 1

InitializeNetworkPoolsFunction · 0.85

Tested by

no test coverage detected