|
FastLED 3.9.15
|
Definition at line 35 of file connection.h.
#include <connection.h>
Collaboration diagram for fl::HttpConnection:Public Member Functions | |
| HttpConnection (const ConnectionConfig &config=ConnectionConfig()) | |
| void | close () |
| void | connect () |
| void | disconnect () |
| u32 | getReconnectAttempts () const |
| u32 | getReconnectDelayMs () const |
| ConnectionState | getState () const |
| bool | isConnected () const |
| bool | isDisconnected () const |
| bool | isTimedOut (u32 currentTimeMs) const |
| void | onConnected (u32 currentTimeMs=0) |
| void | onDisconnected () |
| void | onError () |
| void | onEvent (const asio::error_code &ec, u32 currentTimeMs=0) |
| void | onHeartbeatReceived () |
| void | onHeartbeatSent () |
| bool | shouldReconnect () const |
| bool | shouldSendHeartbeat (u32 currentTimeMs) const |
| void | update (u32 currentTimeMs) |
Private Member Functions | |
| u32 | calculateBackoffDelay () const |
| void | resetReconnectAttempts () |
| void | resetReconnectState () |
| void | transitionTo (ConnectionState newState, u32 currentTimeMs) |
Private Attributes | |
| ConnectionConfig | mConfig |
| u32 | mLastDataReceivedMs |
| u32 | mLastHeartbeatSentMs |
| u32 | mNextReconnectTimeMs |
| u32 | mReconnectAttempts |
| u32 | mReconnectDelayMs |
| ConnectionState | mState |
| bool | mWasReconnecting |