aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/http_client.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-29 22:03:52 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-11 10:46:41 +0000
commit9f8dc4ce515f52ebb2a434ba6d1d9f47bfeac612 (patch)
tree7c73227be570f59685f1c3efb4d313c0831aa9f6 /contrib/epee/include/net/http_client.h
parentMerge pull request #5367 (diff)
downloadmonero-9f8dc4ce515f52ebb2a434ba6d1d9f47bfeac612.tar.xz
simplewallet: new net_stats command
displays total sent and received bytes
Diffstat (limited to 'contrib/epee/include/net/http_client.h')
-rw-r--r--contrib/epee/include/net/http_client.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/epee/include/net/http_client.h b/contrib/epee/include/net/http_client.h
index a18a1d30a..bb10c8efc 100644
--- a/contrib/epee/include/net/http_client.h
+++ b/contrib/epee/include/net/http_client.h
@@ -444,6 +444,16 @@ namespace net_utils
return handle_reciev(timeout);
}
//---------------------------------------------------------------------------
+ uint64_t get_bytes_sent() const
+ {
+ return m_net_client.get_bytes_sent();
+ }
+ //---------------------------------------------------------------------------
+ uint64_t get_bytes_received() const
+ {
+ return m_net_client.get_bytes_received();
+ }
+ //---------------------------------------------------------------------------
private:
//---------------------------------------------------------------------------
inline bool handle_reciev(std::chrono::milliseconds timeout)