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

Function NetworkBackgroundLoop

src/network/network.cpp:1081–1091  ·  view source on GitHub ↗

* We have to do some (simple) background stuff that runs normally, * even when we are not in multiplayer. For example stuff needed * for finding servers or downloading content. */

Source from the content-addressed store, hash-verified

1079 * for finding servers or downloading content.
1080 */
1081void NetworkBackgroundLoop()
1082{
1083 _network_content_client.SendReceive();
1084 _network_coordinator_client.SendReceive();
1085 TCPConnecter::CheckCallbacks();
1086 NetworkHTTPSocketHandler::HTTPReceive();
1087 QueryNetworkGameSocketHandler::SendReceive();
1088 NetworkGameSocketHandler::ProcessDeferredDeletions();
1089
1090 NetworkBackgroundUDPLoop();
1091}
1092
1093/* The main loop called from ttd.c
1094 * Here we also have to do StateGameLoop if needed! */

Callers 2

GameLoopFunction · 0.85
TransmitMethod · 0.85

Calls 2

NetworkBackgroundUDPLoopFunction · 0.85
SendReceiveMethod · 0.45

Tested by

no test coverage detected