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

Method isTimedOut

src/fl/stl/asio/http/connection.cpp.hpp:151–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151bool HttpConnection::isTimedOut(u32 currentTimeMs) const {
152 if (mState != ConnectionState::CONNECTED) {
153 return false; // Only check timeout when connected
154 }
155
156 // Check if enough time has passed since last data received
157 u32 timeSinceLastData = currentTimeMs - mLastDataReceivedMs;
158 return timeSinceLastData >= mConfig.connectionTimeoutMs;
159}
160
161void HttpConnection::transitionTo(ConnectionState newState, u32 currentTimeMs) {
162 mState = newState;

Callers 1

FL_TEST_FILEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected