select first hop for inbound tunnel from connected peers

This commit is contained in:
orignal 2015-06-07 08:37:34 -04:00
parent 9a9b38a8c3
commit c896f6d0d7
2 changed files with 45 additions and 53 deletions

View file

@ -61,6 +61,7 @@ namespace tunnel
template<class TTunnels>
typename TTunnels::value_type GetNextTunnel (TTunnels& tunnels, typename TTunnels::value_type excluded) const;
std::shared_ptr<const i2p::data::RouterInfo> SelectNextHop (std::shared_ptr<const i2p::data::RouterInfo> prevHop) const;
bool SelectPeers (std::vector<std::shared_ptr<const i2p::data::RouterInfo> >& hops);
private: