Lines Matching +full:one +full:- +full:to +full:- +full:many
2 * Copyright (c) 2009-2012 Niels Provos and Nick Mathewson
12 * 3. The name of the author may not be used to endorse or promote products
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 /** A token bucket is an internal structure that tracks how many bytes we are
36 * currently willing to read or write on a given bufferevent or group of
39 /** How many bytes are we willing to read or write right now? These
43 * relative to the token bucket configuration. */
49 /** How many bytes are we willing to read on average per tick? */
51 /** How many bytes are we willing to read at most in any one tick? */
53 /** How many bytes are we willing to write on average per tick? */
55 /** How many bytes are we willing to write at most in any one tick? */
66 /** The current tick is 'current_tick': add bytes to 'bucket' as specified in
72 /** In which tick does 'tv' fall according to 'cfg'? Note that ticks can
73 * overflow easily; your code needs to handle this. */
77 /** Adjust 'bucket' to respect 'cfg', and note that it was last updated in
93 (b)->read_limit -= (n); \
98 (b)->write_limit -= (n); \