Tor  0.4.7.0-alpha-dev
predict_ports.h
Go to the documentation of this file.
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * \file predict_ports.h
9  * \brief Header file for predict_ports.c.
10  **/
11 
12 #ifndef TOR_PREDICT_PORTS_H
13 #define TOR_PREDICT_PORTS_H
14 
15 void predicted_ports_init(void);
16 void rep_hist_note_used_port(time_t now, uint16_t port);
18 void rep_hist_remove_predicted_ports(const smartlist_t *rmv_ports);
19 void rep_hist_note_used_resolve(time_t now);
20 void rep_hist_note_used_internal(time_t now, int need_uptime,
21  int need_capacity);
22 int rep_hist_get_predicted_internal(time_t now, int *need_uptime,
23  int *need_capacity);
24 
25 int any_predicted_circuits(time_t now);
26 int rep_hist_circbuilding_dormant(time_t now);
28 void predicted_ports_free_all(void);
29 
30 #endif /* !defined(TOR_PREDICT_PORTS_H) */
void rep_hist_note_used_port(time_t now, uint16_t port)
void rep_hist_remove_predicted_ports(const smartlist_t *rmv_ports)
int rep_hist_circbuilding_dormant(time_t now)
void rep_hist_note_used_internal(time_t now, int need_uptime, int need_capacity)
void rep_hist_note_used_resolve(time_t now)
int predicted_ports_prediction_time_remaining(time_t now)
Definition: predict_ports.c:54
int rep_hist_get_predicted_internal(time_t now, int *need_uptime, int *need_capacity)
int any_predicted_circuits(time_t now)
smartlist_t * rep_hist_get_predicted_ports(time_t now)
void predicted_ports_free_all(void)