add debug info when ip address is set to an unknown peer

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1604 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2009-09-06 19:52:48 +00:00
parent 591b400aec
commit 6b63f511e3

View File

@ -2833,6 +2833,11 @@ bool p3ConnectMgr::setLocalAddress(std::string id, struct sockaddr_in addr)
{
if (mOthersList.end() == (it = mOthersList.find(id)))
{
#ifdef CONN_DEBUG
std::cerr << "p3ConnectMgr::setLocalAddress() cannot add addres info : peer id not found in friend list ";
std::cerr << " id: " << id;
std::cerr << std::endl;
#endif
return false;
}
}
@ -2862,6 +2867,11 @@ bool p3ConnectMgr::setExtAddress(std::string id, struct sockaddr_in addr)
{
if (mOthersList.end() == (it = mOthersList.find(id)))
{
#ifdef CONN_DEBUG
std::cerr << "p3ConnectMgr::setLocalAddress() cannot add addres info : peer id not found in friend list ";
std::cerr << " id: " << id;
std::cerr << std::endl;
#endif
return false;
}
}