mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 18:45:17 -04:00
Merging from branches/v0.5-peernet/libbitdht (--- Merging r4354 through r4356 into '.')
* adding Bloom filter to speed up finding RS peers. * fixed startup bug. (loops into FAILURE) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4357 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
702ff44194
commit
79b48d5a89
15 changed files with 820 additions and 21 deletions
|
@ -461,6 +461,18 @@ void bdNode::addPeer(const bdId *id, uint32_t peerflags)
|
|||
// Finally we pass to connections for them to use.
|
||||
mConnMgr->updatePotentialConnectionProxy(id, peerflags);
|
||||
|
||||
|
||||
//#define DISPLAY_BITDHTNODES 1
|
||||
#ifdef DISPLAY_BITDHTNODES
|
||||
/* TEMP to extract IDS for BloomFilter */
|
||||
if (peerflags & BITDHT_PEER_STATUS_DHT_ENGINE)
|
||||
{
|
||||
std::cerr << "bdNode::addPeer() FOUND BITDHT PEER";
|
||||
std::cerr << std::endl;
|
||||
mFns->bdPrintNodeId(std::cerr, &(id->id));
|
||||
std::cerr << std::endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/************************************ Process Remote Query *************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue