diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2013-02-06 14:15:32 +0100 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2013-05-16 13:48:35 +0200 |
commit | 8d1f78c556abb570bb80ea84261c954d9746cf33 (patch) | |
tree | ab3888a02792bc7a7e04989e7f8035c747f43e93 /src/or/or.h | |
parent | e54d664f7bb1205162c1df3495f8ebc30c23d867 (diff) | |
download | tor-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.h | 6 |
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. */ |