Show amount of traffic in connections list in Network Map window.
Since I've wanted this feature myself for a while, I thought I should try to write it myself. My C++ is rusty and I don't know Qt so this was hard, but it works great.
I've only modified Vidalia, not Tor itself or its control protocol, so there are some small caveats here:
- The STREAM_BW messages emitted by Tor are traffic delta values rather than totals, so Vidalia cannot count stream traffic from before it was started.
- Seemingly it counts the traffic sent over the logical TCP stream, but not the overhead of the stream itself, which may or may not be desirable, but it's worth noting that it's not the same as the bandwidth graph.
- It does not count the traffic of circuits because there is no message for that in the control protocol.
I made a patch against Vidalia 0.2.20 that I got from the git web thingy. I'm bad with version control software and with diffs and patches, so please bear with me if I need to submit this in a different format or to somewhere else. But if someone in charge would be so kind as to verify it, and like it, and commit it in some fashion (modified or otherwise), it would make my day.
The attached patch also fixes the Stream::isValidStreamId function, because while I was doing this I noticed that function didn't work.