25 unsigned rate_bps = 1000000);
29 { m_rate_bps = rate_bps; }
36 unsigned calc_tokens(
unsigned usec)
const;
Abstract API for writing byte-streams and packets.
Wrapper class for forwarding writes to another object.
A rate-controlled io::WriteableRedirect.
void timer_event() override
Child class MUST override this method.
unsigned get_write_space() const override
How many bytes can be written without blocking?
bool write_finalize() override
Mark end of frame and release temporary working data.
void set_rate(unsigned rate_bps)
Adjust the rate limit.
Timer objects are polled after a fixed delay or at a regular interval.
"Writeable" I/O interface core definitions
Core event-processing loop for SatCat5 software.
Timestamp for measuring elapsed time.
TimeRef and TimeVal define the API for monotonic timers.