OpenMPI  0.1.1
ev_token_bucket Struct Reference

A token bucket is an internal structure that tracks how many bytes we are currently willing to read or write on a given bufferevent or group of bufferevents. More...

#include <ratelim-internal.h>

Data Fields

ev_ssize_t read_limit
 How many bytes are we willing to read or write right now? These values are signed so that we can do "defecit spending".
 
ev_ssize_t write_limit
 
ev_uint32_t last_updated
 When was this bucket last updated? Measured in abstract 'ticks' relative to the token bucket configuration. More...
 

Detailed Description

A token bucket is an internal structure that tracks how many bytes we are currently willing to read or write on a given bufferevent or group of bufferevents.

Field Documentation

ev_uint32_t ev_token_bucket::last_updated

When was this bucket last updated? Measured in abstract 'ticks' relative to the token bucket configuration.


The documentation for this struct was generated from the following file: