ev_token_bucket_cfg_new

Initialize and return a new object to configure the rate-limiting behavior of bufferevents.

@param read_rate The maximum number of bytes to read per tick on average. @param read_burst The maximum number of bytes to read in any single tick. @param write_rate The maximum number of bytes to write per tick on average. @param write_burst The maximum number of bytes to write in any single tick. @param tick_len The length of a single tick. Defaults to one second. Any fractions of a millisecond are ignored.

Note that all rate-limits hare are currently best-effort: future versions of Libevent may implement them more tightly.

extern (C) nothrow
ev_token_bucket_cfg_new
(
size_t read_rate
,
size_t read_burst
,
size_t write_rate
,,
const(timeval)* tick_len
)

Meta