tor  0.4.2.1-alpha-dev
circuitmux_ewma.h
Go to the documentation of this file.
1 /* * Copyright (c) 2012-2019, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
9 #ifndef TOR_CIRCUITMUX_EWMA_H
10 #define TOR_CIRCUITMUX_EWMA_H
11 
12 #include "core/or/or.h"
13 #include "core/or/circuitmux.h"
14 
15 /* The public EWMA policy callbacks object. */
16 extern circuitmux_policy_t ewma_policy;
17 
18 /* Externally visible EWMA functions */
19 void cmux_ewma_set_options(const or_options_t *options,
20  const networkstatus_t *consensus);
21 
22 void circuitmux_ewma_free_all(void);
23 
24 #ifdef CIRCUITMUX_EWMA_PRIVATE
25 STATIC unsigned cell_ewma_get_current_tick_and_fraction(double *remainder_out);
26 STATIC void cell_ewma_initialize_ticks(void);
27 #endif
28 
29 #endif /* !defined(TOR_CIRCUITMUX_EWMA_H) */
30 
void cmux_ewma_set_options(const or_options_t *options, const networkstatus_t *consensus)
STATIC void cell_ewma_initialize_ticks(void)
Master header file for Tor-specific functionality.
STATIC unsigned cell_ewma_get_current_tick_and_fraction(double *remainder_out)
Header file for circuitmux.c.
void circuitmux_ewma_free_all(void)