| 147 | } |
| 148 | |
| 149 | void NativeHttpServer::update(u32 currentTimeMs) { |
| 150 | // Check for dead connections |
| 151 | for (size_t i = 0; i < mClients.size(); ) { |
| 152 | auto& client = mClients[i]; |
| 153 | |
| 154 | // Update connection state |
| 155 | client.connection.update(currentTimeMs); |
| 156 | |
| 157 | // Check if client is still connected |
| 158 | if (!client.connection.isConnected() || !isSocketConnected(client.socket)) { |
| 159 | // Remove disconnected client (socket closes in destructor) |
| 160 | mClients.erase(mClients.begin() + i); |
| 161 | continue; |
| 162 | } |
| 163 | |
| 164 | ++i; |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | fl::vector<u32> NativeHttpServer::getClientIds() const { |
| 169 | fl::vector<u32> ids; |
nothing calls this directly
no test coverage detected