show total send/received bytes

This commit is contained in:
orignal 2015-03-16 19:33:59 -04:00
parent a72d7652af
commit 028e3a6c35
5 changed files with 16 additions and 3 deletions

View file

@ -78,6 +78,7 @@ namespace transport
void SSUSession::ProcessNextMessage (uint8_t * buf, size_t len, const boost::asio::ip::udp::endpoint& senderEndpoint)
{
m_NumReceivedBytes += len;
i2p::transport::transports.UpdateReceivedBytes (len);
if (m_State == eSessionStateIntroduced)
{
// HolePunch received
@ -1107,6 +1108,7 @@ namespace transport
void SSUSession::Send (const uint8_t * buf, size_t size)
{
m_NumSentBytes += size;
i2p::transport::transports.UpdateSentBytes (size);
m_Server.Send (buf, size, m_RemoteEndpoint);
}
}