summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2013-02-06 14:15:32 +0100
committerKarsten Loesing <karsten.loesing@gmx.net>2013-05-16 13:48:35 +0200
commit8d1f78c556abb570bb80ea84261c954d9746cf33 (patch)
treeab3888a02792bc7a7e04989e7f8035c747f43e93 /src/or/or.h
parente54d664f7bb1205162c1df3495f8ebc30c23d867 (diff)
downloadtor-8d1f78c556abb570bb80ea84261c954d9746cf33.tar.gz
tor-8d1f78c556abb570bb80ea84261c954d9746cf33.zip
Add new CONN_BW event.
Jointly authored with Rob Jansen <jansen@cs.umn.edu>.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 7b6c65fbb1..08a94aae6c 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1230,6 +1230,12 @@ typedef struct connection_t {
/** Unique identifier for this connection on this Tor instance. */
uint64_t global_identifier;
+
+ /** Bytes read since last call to control_event_conn_bandwidth_used() */
+ uint32_t n_read;
+
+ /** Bytes written since last call to control_event_conn_bandwidth_used() */
+ uint32_t n_written;
} connection_t;
/** Subtype of connection_t; used for a listener socket. */