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

Method removeClient

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

Source from the content-addressed store, hash-verified

215}
216
217void NativeHttpServer::removeClient(u32 clientId) {
218 for (size_t i = 0; i < mClients.size(); ++i) {
219 if (mClients[i].clientId == clientId) {
220 // Socket closes automatically in destructor
221 mClients.erase(mClients.begin() + i);
222 return;
223 }
224 }
225}
226
227bool NativeHttpServer::isSocketConnected(const asio::ip::tcp::socket& sock) const {
228 if (!sock.is_open()) {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected