Tor  0.4.6.0-alpha-dev
connstats.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-2020, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file connstats.h
9  * @brief Header for feature/stats/connstats.c
10  **/
11 
12 #ifndef TOR_FEATURE_STATS_CONNSTATS_H
13 #define TOR_FEATURE_STATS_CONNSTATS_H
14 
15 void conn_stats_init(time_t now);
16 void conn_stats_note_or_conn_bytes(uint64_t conn_id, size_t num_read,
17  size_t num_written, time_t when,
18  bool is_ipv6);
19 void conn_stats_reset(time_t now);
20 char *conn_stats_format(time_t now);
21 time_t conn_stats_save(time_t now);
22 void conn_stats_terminate(void);
23 void conn_stats_free_all(void);
24 
25 #endif /* !defined(TOR_FEATURE_STATS_CONNSTATS_H) */
conn_stats_init
void conn_stats_init(time_t now)
Definition: connstats.c:30
conn_stats_terminate
void conn_stats_terminate(void)
Definition: connstats.c:136
conn_stats_note_or_conn_bytes
void conn_stats_note_or_conn_bytes(uint64_t conn_id, size_t num_read, size_t num_written, time_t when, bool is_ipv6)
Definition: connstats.c:185
conn_stats_save
time_t conn_stats_save(time_t now)
Definition: connstats.c:260
conn_stats_reset
void conn_stats_reset(time_t now)
Definition: connstats.c:125
conn_stats_format
char * conn_stats_format(time_t now)
Definition: connstats.c:224
conn_stats_free_all
void conn_stats_free_all(void)
Definition: connstats.c:112