mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 07:16:11 -05:00
* added extra debugging for rs integration testing.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3578 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
102123cc52
commit
90daeacc36
@ -54,7 +54,6 @@
|
||||
* #define DEBUG_MGR_PKT 1
|
||||
***/
|
||||
|
||||
|
||||
bdNodeManager::bdNodeManager(bdNodeId *id, std::string dhtVersion, std::string bootfile, bdDhtFunctions *fns)
|
||||
:bdNode(id, dhtVersion, bootfile, fns)
|
||||
{
|
||||
@ -638,9 +637,12 @@ void bdNodeManager::addPeer(const bdId *id, uint32_t peerflags)
|
||||
void bdNodeManager::doNodeCallback(const bdId *id, uint32_t peerflags)
|
||||
{
|
||||
#ifdef DEBUG_MGR
|
||||
std::cerr << "bdNodeManager::doPeerCallback()";
|
||||
std::cerr << "bdNodeManager::doNodeCallback() ";
|
||||
mFns->bdPrintId(std::cerr, id);
|
||||
std::cerr << "peerflags: " << peerflags;
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
/* search list */
|
||||
std::list<BitDhtCallback *>::iterator it;
|
||||
for(it = mCallbacks.begin(); it != mCallbacks.end(); it++)
|
||||
@ -652,10 +654,14 @@ void bdNodeManager::doNodeCallback(const bdId *id, uint32_t peerflags)
|
||||
|
||||
void bdNodeManager::doPeerCallback(const bdNodeId *id, uint32_t status)
|
||||
{
|
||||
|
||||
#ifdef DEBUG_MGR
|
||||
std::cerr << "bdNodeManager::doPeerCallback()";
|
||||
mFns->bdPrintNodeId(std::cerr, id);
|
||||
std::cerr << "status: " << status;
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
/* search list */
|
||||
std::list<BitDhtCallback *>::iterator it;
|
||||
for(it = mCallbacks.begin(); it != mCallbacks.end(); it++)
|
||||
@ -667,9 +673,10 @@ void bdNodeManager::doPeerCallback(const bdNodeId *id, uint32_t status)
|
||||
|
||||
void bdNodeManager::doValueCallback(const bdNodeId *id, std::string /*key*/, uint32_t status)
|
||||
{
|
||||
#ifdef DEBUG_MGR
|
||||
std::cerr << "bdNodeManager::doValueCallback()";
|
||||
std::cerr << std::endl;
|
||||
|
||||
#ifdef DEBUG_MGR
|
||||
#endif
|
||||
/* search list */
|
||||
std::list<BitDhtCallback *>::iterator it;
|
||||
|
Loading…
x
Reference in New Issue
Block a user