Skip to content

Commit

Permalink
some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Dec 16, 2014
1 parent 219abaa commit 6e32c38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 0 additions & 4 deletions HTTPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,6 @@ namespace util
for (auto it: i2p::tunnel::tunnels.GetOutboundTunnels ())
{
it->GetTunnelConfig ()->Print (s);
if (it->GetTunnelPool () && !it->GetTunnelPool ()->IsExploratory ())
s << " " << "Pool";
auto state = it->GetState ();
if (state == i2p::tunnel::eTunnelStateFailed)
s << " " << "Failed";
Expand All @@ -763,8 +761,6 @@ namespace util
for (auto it: i2p::tunnel::tunnels.GetInboundTunnels ())
{
it.second->GetTunnelConfig ()->Print (s);
if (it.second->GetTunnelPool () && !it.second->GetTunnelPool ()->IsExploratory ())
s << " " << "Pool";
auto state = it.second->GetState ();
if (state == i2p::tunnel::eTunnelStateFailed)
s << " " << "Failed";
Expand Down
10 changes: 3 additions & 7 deletions TunnelPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ 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 (); };

i2p::garlic::GarlicDestination& GetLocalDestination () const { return m_LocalDestination; };

void CreateTunnels ();
void TunnelCreated (InboundTunnel * createdTunnel);
Expand All @@ -41,8 +38,7 @@ namespace tunnel
void TunnelExpired (OutboundTunnel * expiredTunnel);
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 (); };
InboundTunnel * GetNextInboundTunnel (InboundTunnel * suggested = nullptr) const;

void TestTunnels ();
void ProcessDeliveryStatus (I2NPMessage * msg);
Expand Down

0 comments on commit 6e32c38

Please sign in to comment.