|
|
|
@ -29,10 +29,7 @@ namespace tunnel
@@ -29,10 +29,7 @@ namespace tunnel
|
|
|
|
|
TunnelPool (i2p::garlic::GarlicDestination& localDestination, int numInboundHops, int numOutboundHops, int numTunnels = 5); |
|
|
|
|
~TunnelPool (); |
|
|
|
|
|
|
|
|
|
const uint8_t * GetEncryptionPrivateKey () const { return m_LocalDestination.GetEncryptionPrivateKey (); }; |
|
|
|
|
const uint8_t * GetEncryptionPublicKey () const { return m_LocalDestination.GetEncryptionPublicKey (); }; |
|
|
|
|
i2p::garlic::GarlicDestination& GetLocalDestination () const { return m_LocalDestination; }; |
|
|
|
|
bool IsExploratory () const { return GetIdentHash () == i2p::context.GetIdentHash (); }; |
|
|
|
|
|
|
|
|
|
void CreateTunnels (); |
|
|
|
|
void TunnelCreated (InboundTunnel * createdTunnel); |
|
|
|
@ -42,7 +39,6 @@ namespace tunnel
@@ -42,7 +39,6 @@ namespace tunnel
|
|
|
|
|
std::vector<InboundTunnel *> GetInboundTunnels (int num) const; |
|
|
|
|
OutboundTunnel * GetNextOutboundTunnel (OutboundTunnel * suggested = nullptr) const; |
|
|
|
|
InboundTunnel * GetNextInboundTunnel (InboundTunnel * suggested = nullptr) const; |
|
|
|
|
const i2p::data::IdentHash& GetIdentHash () const { return m_LocalDestination.GetIdentHash (); }; |
|
|
|
|
|
|
|
|
|
void TestTunnels (); |
|
|
|
|
void ProcessDeliveryStatus (I2NPMessage * msg); |
|
|
|
|