| 274 | } |
| 275 | |
| 276 | void NetworkServer::processPackets() |
| 277 | { |
| 278 | for (auto& client : _clients) |
| 279 | { |
| 280 | while (auto packet = client->connection->takeNextPacket()) |
| 281 | { |
| 282 | onReceivePacketFromClient(*client, *packet); |
| 283 | } |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | void NetworkServer::onUpdate() |
| 288 | { |
nothing calls this directly
no test coverage detected