mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
memory pool for SSU packets
This commit is contained in:
parent
9cb8e194b0
commit
4317694c64
2 changed files with 11 additions and 9 deletions
4
SSU.h
4
SSU.h
|
@ -15,6 +15,7 @@
|
|||
#include "RouterInfo.h"
|
||||
#include "I2NPProtocol.h"
|
||||
#include "SSUSession.h"
|
||||
#include "util.h" // for MemoryPool
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
|
@ -122,7 +123,8 @@ namespace transport
|
|||
std::map<boost::asio::ip::udp::endpoint, std::shared_ptr<SSUSession> > m_Sessions, m_SessionsV6;
|
||||
std::map<uint32_t, std::shared_ptr<SSUSession> > m_Relays; // we are introducer
|
||||
std::map<uint32_t, PeerTest> m_PeerTests; // nonce -> creation time in milliseconds
|
||||
|
||||
i2p::util::MemoryPoolMt<SSUPacket> m_Packets;
|
||||
|
||||
public:
|
||||
// for HTTP only
|
||||
const decltype(m_Sessions)& GetSessions () const { return m_Sessions; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue