| 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 | { |
no test coverage detected