mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
show total send/received bytes
This commit is contained in:
parent
a72d7652af
commit
028e3a6c35
5 changed files with 16 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue