Tor 0.4.9.0-alpha-dev
Data Fields
token_bucket_rw_t Struct Reference

#include <token_bucket.h>

Data Fields

token_bucket_cfg_t cfg
 
token_bucket_raw_t read_bucket
 
token_bucket_raw_t write_bucket
 
uint32_t last_refilled_at_timestamp
 

Detailed Description

A convenience type containing all the pieces needed for a coupled read-bucket and write-bucket that have the same rate limit, and which use "timestamp units" (see compat_time.h) for their time.

Definition at line 59 of file token_bucket.h.

Field Documentation

◆ cfg

Definition at line 60 of file token_bucket.h.

◆ last_refilled_at_timestamp

uint32_t last_refilled_at_timestamp

Definition at line 63 of file token_bucket.h.

◆ read_bucket

token_bucket_raw_t read_bucket

Definition at line 61 of file token_bucket.h.

◆ write_bucket

token_bucket_raw_t write_bucket

Definition at line 62 of file token_bucket.h.


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