aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.h
diff options
context:
space:
mode:
authorDamian Johnson <atagar@torproject.org>2011-01-06 21:53:48 -0800
committerNick Mathewson <nickm@torproject.org>2011-01-07 12:15:14 -0500
commit6661e16e7ca677cc6063b5aaf25da512d7cda8ad (patch)
tree907f911566d075f7cfa6d93309f06ade64f8945c /src/or/main.h
parent3bc235d97975dfa17ca6732a930b28124b92eef5 (diff)
downloadtor-6661e16e7ca677cc6063b5aaf25da512d7cda8ad.tar
tor-6661e16e7ca677cc6063b5aaf25da512d7cda8ad.tar.gz
GETINFO options for querying traffic usage
This was originally a patch provided by pipe (http://www.mail-archive.com/or-talk@freehaven.net/msg13085.html) to provide a method for controllers to query the total amount of traffic tor has handled (this is a frequently requested piece of information by relay operators).
Diffstat (limited to 'src/or/main.h')
-rw-r--r--src/or/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/main.h b/src/or/main.h
index 550f993bf..4e15d4dac 100644
--- a/src/or/main.h
+++ b/src/or/main.h
@@ -24,6 +24,8 @@ void add_connection_to_closeable_list(connection_t *conn);
int connection_is_on_closeable_list(connection_t *conn);
smartlist_t *get_connection_array(void);
+uint64_t get_bytes_read(void);
+uint64_t get_bytes_written(void);
typedef enum watchable_events {
/* Yes, it is intentional that these match Libevent's EV_READ and EV_WRITE */