tor  0.4.2.0-alpha-dev
predict_ports.h
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-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
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_internal(time_t now, int need_uptime, int need_capacity)
int predicted_ports_prediction_time_remaining(time_t now)
Definition: predict_ports.c:54
void rep_hist_remove_predicted_ports(const smartlist_t *rmv_ports)
int any_predicted_circuits(time_t now)
int rep_hist_circbuilding_dormant(time_t now)
int rep_hist_get_predicted_internal(time_t now, int *need_uptime, int *need_capacity)
smartlist_t * rep_hist_get_predicted_ports(time_t now)
void rep_hist_note_used_resolve(time_t now)
void rep_hist_note_used_port(time_t now, uint16_t port)
void predicted_ports_free_all(void)