|
|
@ -4,6 +4,7 @@ |
|
|
|
#include <inttypes.h> |
|
|
|
#include <inttypes.h> |
|
|
|
#include <string> |
|
|
|
#include <string> |
|
|
|
#include <memory> |
|
|
|
#include <memory> |
|
|
|
|
|
|
|
#include <mutex> |
|
|
|
#include <boost/asio.hpp> |
|
|
|
#include <boost/asio.hpp> |
|
|
|
#include <cryptopp/dsa.h> |
|
|
|
#include <cryptopp/dsa.h> |
|
|
|
#include <cryptopp/osrng.h> |
|
|
|
#include <cryptopp/osrng.h> |
|
|
@ -76,6 +77,10 @@ namespace i2p |
|
|
|
std::shared_ptr<i2p::tunnel::TunnelPool> GetTunnelPool () const; |
|
|
|
std::shared_ptr<i2p::tunnel::TunnelPool> GetTunnelPool () const; |
|
|
|
void HandleI2NPMessage (const uint8_t * buf, size_t len, std::shared_ptr<i2p::tunnel::InboundTunnel> from); |
|
|
|
void HandleI2NPMessage (const uint8_t * buf, size_t len, std::shared_ptr<i2p::tunnel::InboundTunnel> from); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// override GarlicDestination
|
|
|
|
|
|
|
|
void ProcessGarlicMessage (I2NPMessage * msg); |
|
|
|
|
|
|
|
void ProcessDeliveryStatusMessage (I2NPMessage * msg); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
|
|
|
|
void CreateNewRouter (); |
|
|
|
void CreateNewRouter (); |
|
|
@ -93,6 +98,7 @@ namespace i2p |
|
|
|
bool m_AcceptsTunnels, m_IsFloodfill; |
|
|
|
bool m_AcceptsTunnels, m_IsFloodfill; |
|
|
|
uint64_t m_StartupTime; // in seconds since epoch
|
|
|
|
uint64_t m_StartupTime; // in seconds since epoch
|
|
|
|
RouterStatus m_Status; |
|
|
|
RouterStatus m_Status; |
|
|
|
|
|
|
|
std::mutex m_GarlicMutex; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
extern RouterContext context; |
|
|
|
extern RouterContext context; |
|
|
|