Distribute the commands of ourself and the clients. */
| 355 | |
| 356 | /** Distribute the commands of ourself and the clients. */ |
| 357 | void NetworkDistributeCommands() |
| 358 | { |
| 359 | /* First send the server's commands. */ |
| 360 | DistributeQueue(_local_wait_queue, nullptr); |
| 361 | |
| 362 | /* Then send the queues of the others. */ |
| 363 | for (NetworkClientSocket *cs : NetworkClientSocket::Iterate()) { |
| 364 | DistributeQueue(cs->incoming_queue, cs); |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | /** |
| 369 | * Receives a command from the network. |
no test coverage detected