sociomantic-tsunami / dlsproto

Distributed Log Store protocol definition, client, fake node, and tests
Boost Software License 1.0
3 stars 18 forks source link

Expose client stats of records/bytes transfered #28

Open nemanja-boric-sociomantic opened 6 years ago

nemanja-boric-sociomantic commented 6 years ago

Client should allow inspecting the number of bytes/records transferred for each connection.

gavin-norman-sociomantic commented 6 years ago

The number of bytes transmitted per connection is already available via https://github.com/sociomantic-tsunami/swarm/blob/v4.x.x/src/swarm/neo/client/mixins/ClientCore.d#L393-L430. This might be sufficient. (I'm not sure what the use case for this issue is.)

Example of use: https://github.com/sociomantic-tsunami/dhtproto/blob/neo/src/dhtproto/client/UsageExamples.d#L689-L698

nemanja-boric-sociomantic commented 6 years ago

Yes, I think that's sufficient. I've opened the issue, as I'm not sure that dlsclient currently is exposing this functionality.

gavin-norman-sociomantic commented 6 years ago

I think it's built into the client, but yeah, have a check.