mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
some cleanup
This commit is contained in:
parent
88e6a76a1b
commit
0a0f61b940
2 changed files with 0 additions and 18 deletions
17
Tunnel.cpp
17
Tunnel.cpp
|
@ -237,23 +237,6 @@ namespace tunnel
|
||||||
}
|
}
|
||||||
return tunnel;
|
return tunnel;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<InboundTunnel *> Tunnels::GetInboundTunnels (int num) const
|
|
||||||
{
|
|
||||||
std::vector<InboundTunnel *> v;
|
|
||||||
int i = 0;
|
|
||||||
for (auto it : m_InboundTunnels)
|
|
||||||
{
|
|
||||||
if (i >= num) break;
|
|
||||||
if (!it.second->IsFailed () && it.second->GetNextIdentHash () != i2p::context.GetRouterInfo ().GetIdentHash ())
|
|
||||||
{
|
|
||||||
// exclude one hop tunnels
|
|
||||||
v.push_back (it.second);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return v;
|
|
||||||
}
|
|
||||||
|
|
||||||
OutboundTunnel * Tunnels::GetNextOutboundTunnel ()
|
OutboundTunnel * Tunnels::GetNextOutboundTunnel ()
|
||||||
{
|
{
|
||||||
|
|
1
Tunnel.h
1
Tunnel.h
|
@ -114,7 +114,6 @@ namespace tunnel
|
||||||
InboundTunnel * GetInboundTunnel (uint32_t tunnelID);
|
InboundTunnel * GetInboundTunnel (uint32_t tunnelID);
|
||||||
Tunnel * GetPendingTunnel (uint32_t replyMsgID);
|
Tunnel * GetPendingTunnel (uint32_t replyMsgID);
|
||||||
InboundTunnel * GetNextInboundTunnel ();
|
InboundTunnel * GetNextInboundTunnel ();
|
||||||
std::vector<InboundTunnel *> GetInboundTunnels (int num) const;
|
|
||||||
OutboundTunnel * GetNextOutboundTunnel ();
|
OutboundTunnel * GetNextOutboundTunnel ();
|
||||||
TransitTunnel * GetTransitTunnel (uint32_t tunnelID);
|
TransitTunnel * GetTransitTunnel (uint32_t tunnelID);
|
||||||
void AddTransitTunnel (TransitTunnel * tunnel);
|
void AddTransitTunnel (TransitTunnel * tunnel);
|
||||||
|
|
Loading…
Add table
Reference in a new issue