MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / Flush

Method Flush

src/openrct2/network/NetworkBase.cpp:514–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512 }
513
514 void NetworkBase::Flush()
515 {
516 if (GetMode() == Mode::client)
517 {
518 _serverConnection->sendQueuedData();
519 }
520 else
521 {
522 for (auto& it : client_connection_list)
523 {
524 it->sendQueuedData();
525 }
526 }
527 }
528
529 void NetworkBase::UpdateServer()
530 {

Callers 1

FlushFunction · 0.80

Calls 2

GetModeFunction · 0.85
sendQueuedDataMethod · 0.80

Tested by

no test coverage detected