|
|
@ -11,10 +11,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include <inttypes.h> |
|
|
|
#include <inttypes.h> |
|
|
|
#include <string.h> |
|
|
|
#include <string.h> |
|
|
|
#include <unordered_map> |
|
|
|
|
|
|
|
#include <vector> |
|
|
|
#include <vector> |
|
|
|
#include <memory> |
|
|
|
#include <memory> |
|
|
|
#include <boost/asio.hpp> |
|
|
|
#include <boost/asio.hpp> |
|
|
|
|
|
|
|
#include <boost/container/flat_map.hpp> |
|
|
|
#include "I2NPProtocol.h" |
|
|
|
#include "I2NPProtocol.h" |
|
|
|
#include "Identity.h" |
|
|
|
#include "Identity.h" |
|
|
|
#include "RouterInfo.h" |
|
|
|
#include "RouterInfo.h" |
|
|
@ -123,9 +123,9 @@ namespace transport |
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
|
|
|
|
SSUSession& m_Session; |
|
|
|
SSUSession& m_Session; |
|
|
|
std::unordered_map<uint32_t, std::shared_ptr<IncompleteMessage> > m_IncompleteMessages; |
|
|
|
boost::container::flat_map<uint32_t, std::shared_ptr<IncompleteMessage> > m_IncompleteMessages; |
|
|
|
std::unordered_map<uint32_t, std::shared_ptr<SentMessage> > m_SentMessages; |
|
|
|
boost::container::flat_map<uint32_t, std::shared_ptr<SentMessage> > m_SentMessages; |
|
|
|
std::unordered_map<uint32_t, uint64_t> m_ReceivedMessages; // msgID -> timestamp in seconds
|
|
|
|
boost::container::flat_map<uint32_t, uint64_t> m_ReceivedMessages; // msgID -> timestamp in seconds
|
|
|
|
boost::asio::deadline_timer m_ResendTimer; |
|
|
|
boost::asio::deadline_timer m_ResendTimer; |
|
|
|
int m_MaxPacketSize, m_PacketSize; |
|
|
|
int m_MaxPacketSize, m_PacketSize; |
|
|
|
i2p::I2NPMessagesHandler m_Handler; |
|
|
|
i2p::I2NPMessagesHandler m_Handler; |
|
|
|