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

Method close_client

src/fl/stl/asio/http/server.cpp.hpp:602–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602void 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
609void Server::cleanup_stale_connections() {
610 u32 now = fl::platforms::millis();

Callers

nothing calls this directly

Calls 4

closeFunction · 0.50
sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected