mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
small change in p3disc logs
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2441 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8f315a52cc
commit
6f651c4a3c
@ -773,6 +773,13 @@ std::ostream &RsPeerNetItem::print(std::ostream &out, uint16_t indent)
|
||||
out << "currentremoteaddr: " << inet_ntoa(currentremoteaddr.sin_addr);
|
||||
out << ":" << htons(currentremoteaddr.sin_port) << std::endl;
|
||||
|
||||
printIndent(out, int_Indent);
|
||||
out << "ipAdressList: size : " << ipAddressList.size() << ", adresses : " << std::endl;
|
||||
for (std::list<IpAddressTimed>::iterator ipListIt = ipAddressList.begin(); ipListIt!=(ipAddressList.end()); ipListIt++) {
|
||||
printIndent(out, int_Indent);
|
||||
out << inet_ntoa(ipListIt->ipAddr.sin_addr) << ":" << ntohs(ipListIt->ipAddr.sin_port) << " seenTime : " << ipListIt->seenTime << std::endl;
|
||||
}
|
||||
|
||||
printRsItemEnd(out, "RsPeerNetItem", indent);
|
||||
return out;
|
||||
}
|
||||
|
@ -352,7 +352,6 @@ void p3disc::sendPeerDetails(std::string to, std::string about) {
|
||||
rsPeerNetItem->ipAddressList = detail.getIpAddressList();
|
||||
|
||||
di->rsPeerList.push_back(*rsPeerNetItem);
|
||||
|
||||
}
|
||||
|
||||
//send own details
|
||||
@ -524,7 +523,7 @@ void p3disc::recvPeerDetails(RsDiscReply *item)
|
||||
addDiscoveryData(item->PeerId(), pitem->pid, pitem->currentlocaladdr, pitem->currentremoteaddr, 0, time(NULL));
|
||||
|
||||
#ifdef P3DISC_DEBUG
|
||||
std::cerr << "pp3disc::recvPeerFriendMsg() Peer Config Item:" << std::endl;
|
||||
std::cerr << "p3disc::recvPeerFriendMsg() Peer Config Item:" << std::endl;
|
||||
pitem->print(std::cerr, 10);
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
@ -534,7 +533,7 @@ void p3disc::recvPeerDetails(RsDiscReply *item)
|
||||
//|| {
|
||||
mConnMgr->addFriend(pitem->pid, pitem->gpg_id, pitem->netMode, RS_VIS_STATE_NODISC, 0); //add with no disc by default. If friend already exist, it will do nothing
|
||||
} else if (pitem->lastContact > ((uint32_t)deletedSSLFriendsIds[pitem->pid] + 3600*24)) { // the friend was seen up and running 24 hours after we deleted it, we will readd it
|
||||
mConnMgr->addFriend(pitem->pid, pitem->gpg_id, pitem->netMode, RS_VIS_STATE_NODISC, 0); //add with no disc bay default. If friend already exist, it will do nothing
|
||||
mConnMgr->addFriend(pitem->pid, pitem->gpg_id, pitem->netMode, RS_VIS_STATE_NODISC, 0); //add with no disc by default. If friend already exist, it will do nothing
|
||||
}
|
||||
RsPeerDetails storedDetails;
|
||||
if (rsPeers->getPeerDetails(pitem->pid, storedDetails) //update only if we got a detail
|
||||
|
Loading…
Reference in New Issue
Block a user