summaryrefslogtreecommitdiffstats
path: root/src/node.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 05:58:37 +0200
committertv <tv@krebsco.de>2026-10-24 05:58:37 +0200
commitecec63df16ba51fde6a63c9610a8296fa81c3f54 (patch)
treeef7263d3fdb0afabad63dcc981f6d6079020a7f4 /src/node.rs
parentf62fcc7a033df6e09d19d06ed5302534394a3f65 (diff)
add traffic counter
This introduces a new wrapper that counts messages and payload bytes per peer, split by kind (hello, helloReply, sync, ping, pong), each sent, received and refused. The traffic counter goes around the firewall, which means messages dropped outbound are still counted as sent, and messages dropped inbound don't count as received.
Diffstat (limited to 'src/node.rs')
0 files changed, 0 insertions, 0 deletions