mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
show number sent/received bytes through the status page
This commit is contained in:
parent
d7bcaaa3f7
commit
756a920c1a
5 changed files with 21 additions and 9 deletions
6
SSU.h
6
SSU.h
|
@ -73,7 +73,10 @@ namespace ssu
|
|||
void SendPeerTest (); // Alice
|
||||
|
||||
SessionState GetState () const { return m_State; };
|
||||
|
||||
size_t GetNumSentBytes () const { return m_NumSentBytes; };
|
||||
size_t GetNumReceivedBytes () const { return m_NumReceivedBytes; };
|
||||
|
||||
|
||||
private:
|
||||
|
||||
void CreateAESandMacKey (const uint8_t * pubKey);
|
||||
|
@ -131,6 +134,7 @@ namespace ssu
|
|||
std::list<i2p::I2NPMessage *> m_DelayedMessages;
|
||||
std::set<IV> m_ReceivedIVs;
|
||||
SSUData m_Data;
|
||||
size_t m_NumSentBytes, m_NumReceivedBytes;
|
||||
};
|
||||
|
||||
class SSUServer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue