circuitmux_ewma.h 597 B

123456789101112131415161718192021222324
  1. /* * Copyright (c) 2012-2017, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. /**
  4. * \file circuitmux_ewma.h
  5. * \brief Header file for circuitmux_ewma.c
  6. **/
  7. #ifndef TOR_CIRCUITMUX_EWMA_H
  8. #define TOR_CIRCUITMUX_EWMA_H
  9. #include "or.h"
  10. #include "circuitmux.h"
  11. extern circuitmux_policy_t ewma_policy;
  12. /* Externally visible EWMA functions */
  13. int cell_ewma_enabled(void);
  14. unsigned int cell_ewma_get_tick(void);
  15. void cell_ewma_set_scale_factor(const or_options_t *options,
  16. const networkstatus_t *consensus);
  17. #endif /* TOR_CIRCUITMUX_EWMA_H */