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

Function NetworkHandleCommandQueue

src/network/network_server.cpp:1669–1673  ·  view source on GitHub ↗

* Handle the command-queue of a socket. * @param cs The socket to handle the queue for. */

Source from the content-addressed store, hash-verified

1667 * @param cs The socket to handle the queue for.
1668 */
1669static void NetworkHandleCommandQueue(NetworkClientSocket *cs)
1670{
1671 for (auto &cp : cs->outgoing_queue) cs->SendCommand(cp);
1672 cs->outgoing_queue.clear();
1673}
1674
1675/**
1676 * This is called every tick if this is a _network_server

Callers 2

Receive_CLIENT_MAP_OKMethod · 0.85
NetworkServer_TickFunction · 0.85

Calls 2

SendCommandMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected