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

Method Send

src/network/network_server.cpp:303–313  ·  view source on GitHub ↗

Send the packets for the server sockets. */ static */

Source from the content-addressed store, hash-verified

301
302/** Send the packets for the server sockets. */
303/* static */ void ServerNetworkGameSocketHandler::Send()
304{
305 for (NetworkClientSocket *cs : NetworkClientSocket::Iterate()) {
306 if (cs->writable) {
307 if (cs->SendPackets() != SPS_CLOSED && cs->status == STATUS_MAP) {
308 /* This client is in the middle of a map-send, call the function for that */
309 cs->SendMap();
310 }
311 }
312 }
313}
314
315static void NetworkHandleCommandQueue(NetworkClientSocket *cs);
316

Callers

nothing calls this directly

Calls 2

SendPacketsMethod · 0.80
SendMapMethod · 0.80

Tested by

no test coverage detected