The return of peer peristence.
This commit is contained in:
parent
5076c49210
commit
76a95dc58f
4 changed files with 82 additions and 16 deletions
|
@ -164,7 +164,7 @@ public:
|
|||
inline void eachPeer(F f)
|
||||
{
|
||||
Mutex::Lock _l(_lock);
|
||||
Hashtable< Address,SharedPtr<Peer> >::Iterator i(_activePeers);
|
||||
Hashtable< Address,SharedPtr<Peer> >::Iterator i(_peers);
|
||||
Address *a = (Address *)0;
|
||||
SharedPtr<Peer> *p = (SharedPtr<Peer> *)0;
|
||||
while (i.next(a,p))
|
||||
|
@ -177,7 +177,7 @@ public:
|
|||
inline std::vector< std::pair< Address,SharedPtr<Peer> > > allPeers() const
|
||||
{
|
||||
Mutex::Lock _l(_lock);
|
||||
return _activePeers.entries();
|
||||
return _peers.entries();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -194,7 +194,7 @@ private:
|
|||
|
||||
const RuntimeEnvironment *RR;
|
||||
|
||||
Hashtable< Address,SharedPtr<Peer> > _activePeers;
|
||||
Hashtable< Address,SharedPtr<Peer> > _peers;
|
||||
std::map< Identity,std::vector<InetAddress> > _roots;
|
||||
std::vector< Address > _rootAddresses;
|
||||
std::vector< SharedPtr<Peer> > _rootPeers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue