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

Function NetworkStartUp

src/network/network.cpp:1286–1301  ·  view source on GitHub ↗

This tries to launch the network for a given OS */

Source from the content-addressed store, hash-verified

1284
1285/** This tries to launch the network for a given OS */
1286void NetworkStartUp()
1287{
1288 Debug(net, 3, "Starting network");
1289
1290 /* Network is available */
1291 _network_available = NetworkCoreInitialize();
1292 _network_dedicated = false;
1293
1294 _network_game_info = {};
1295
1296 NetworkInitialize();
1297 NetworkUDPInitialize();
1298 Debug(net, 3, "Network online, multiplayer available");
1299 NetworkFindBroadcastIPs(&_broadcast_list);
1300 NetworkHTTPInitialize();
1301}
1302
1303/** This shuts the network down */
1304void NetworkShutDown()

Callers 1

openttd_mainFunction · 0.85

Calls 5

NetworkCoreInitializeFunction · 0.85
NetworkInitializeFunction · 0.85
NetworkUDPInitializeFunction · 0.85
NetworkFindBroadcastIPsFunction · 0.85
NetworkHTTPInitializeFunction · 0.50

Tested by

no test coverage detected