**Experimental** - A class that generates a series of delays to coordinate reconnection attempts. More...
#include <reconnect_timer.hpp>
Public Member Functions | |
| reconnect_timer (uint32_t first=0, int32_t max=-1, uint32_t increment=100, bool doubling=true, int32_t max_retries=-1, int32_t timeout=-1) | |
| void | reset () |
| Indicate a successful connection, resetting the internal timer values. | |
| int | next_delay (timestamp now) |
| Obtain the timer's computed time to delay before attempting a reconnection attempt (in milliseconds). | |
**Experimental** - A class that generates a series of delays to coordinate reconnection attempts.
They may be open ended or limited in time. They may be evenly spaced or doubling at an exponential rate.
| int next_delay | ( | timestamp | now | ) |
Obtain the timer's computed time to delay before attempting a reconnection attempt (in milliseconds).
-1 means that the retry limit or timeout has been exceeded and reconnection attempts should cease.
| void reset | ( | ) |
Indicate a successful connection, resetting the internal timer values.
1.6.1