MCPcopy Create free account
hub / github.com/FastLED/FastLED / update

Method update

src/fl/stl/asio/http/native_server.cpp.hpp:149–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void 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
168fl::vector<u32> NativeHttpServer::getClientIds() const {
169 fl::vector<u32> ids;

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
isConnectedMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected