Tor 0.4.9.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-2021, 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
15void conn_stats_init(time_t now);
16void 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);
19void conn_stats_reset(time_t now);
20char *conn_stats_format(time_t now);
21time_t conn_stats_save(time_t now);
22void conn_stats_terminate(void);
23void conn_stats_free_all(void);
24
25#endif /* !defined(TOR_FEATURE_STATS_CONNSTATS_H) */
time_t conn_stats_save(time_t now)
Definition: connstats.c:260
void conn_stats_reset(time_t now)
Definition: connstats.c:125
void conn_stats_terminate(void)
Definition: connstats.c:136
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
void conn_stats_free_all(void)
Definition: connstats.c:112
char * conn_stats_format(time_t now)
Definition: connstats.c:224
void conn_stats_init(time_t now)
Definition: connstats.c:30