select first hop from existing connections if applicable

This commit is contained in:
orignal 2015-05-05 10:33:19 -04:00
parent 7f172964f6
commit d2b4a6fd50
3 changed files with 23 additions and 2 deletions

View file

@ -98,6 +98,8 @@ namespace transport
uint32_t GetInBandwidth () const { return m_InBandwidth; }; // bytes per second
uint32_t GetOutBandwidth () const { return m_OutBandwidth; }; // bytes per second
bool IsBandwidthExceeded () const;
size_t GetNumPeers () const { return m_Peers.size (); };
std::shared_ptr<const i2p::data::RouterInfo> GetRandomPeer () const;
private: