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

Function NetworkBackgroundUDPLoop

src/network/network_udp.cpp:150–158  ·  view source on GitHub ↗

Receive the UDP packets. */

Source from the content-addressed store, hash-verified

148
149/** Receive the UDP packets. */
150void NetworkBackgroundUDPLoop()
151{
152 if (_network_udp_server) {
153 _udp_server.ReceivePackets();
154 } else {
155 _udp_client.ReceivePackets();
156 if (_network_udp_broadcast > 0) _network_udp_broadcast--;
157 }
158}

Callers 1

NetworkBackgroundLoopFunction · 0.85

Calls 1

ReceivePacketsMethod · 0.45

Tested by

no test coverage detected