| 600 | } |
| 601 | |
| 602 | void Server::close_client(size_t index) { |
| 603 | if (index >= mClientSockets.size()) return; |
| 604 | |
| 605 | close(mClientSockets[index].fd); |
| 606 | mClientSockets.erase(mClientSockets.begin() + static_cast<ptrdiff_t>(index)); |
| 607 | } |
| 608 | |
| 609 | void Server::cleanup_stale_connections() { |
| 610 | u32 now = fl::platforms::millis(); |