mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-21 21:01:15 -05:00
change debug output
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1905 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4f20a4d89c
commit
5f7bc6e69d
@ -3314,15 +3314,10 @@ void peerConnectState::updateIpAddressList(IpAddressTimed ipTimed) { //purge old
|
|||||||
}
|
}
|
||||||
|
|
||||||
void peerConnectState::printIpAddressList() {
|
void peerConnectState::printIpAddressList() {
|
||||||
#ifdef CONN_DEBUG
|
|
||||||
std::cerr << "peerConnectState::printIpAdressList() current ip list for the peer : " << id << ", size : " << ipAddressList.size() << ", adresses : " << std::endl;
|
std::cerr << "peerConnectState::printIpAdressList() current ip list for the peer : " << id << ", size : " << ipAddressList.size() << ", adresses : " << std::endl;
|
||||||
#endif
|
|
||||||
for (std::list<IpAddressTimed>::iterator ipListIt = ipAddressList.begin(); ipListIt!=(ipAddressList.end()); ipListIt++) {
|
for (std::list<IpAddressTimed>::iterator ipListIt = ipAddressList.begin(); ipListIt!=(ipAddressList.end()); ipListIt++) {
|
||||||
#ifdef CONN_DEBUG
|
|
||||||
std::cerr << inet_ntoa(ipListIt->ipAddr.sin_addr) << ":" << ntohs(ipListIt->ipAddr.sin_port) << " seenTime : " << ipListIt->seenTime << std::endl;
|
std::cerr << inet_ntoa(ipListIt->ipAddr.sin_addr) << ":" << ntohs(ipListIt->ipAddr.sin_port) << " seenTime : " << ipListIt->seenTime << std::endl;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool peerConnectState::extractExtAddress(std::list<IpAddressTimed> IpAddressTimedList, IpAddressTimed &resultAddress) {//extract first address that is not the same as local address
|
bool peerConnectState::extractExtAddress(std::list<IpAddressTimed> IpAddressTimedList, IpAddressTimed &resultAddress) {//extract first address that is not the same as local address
|
||||||
|
@ -521,6 +521,9 @@ void p3disc::sendPeerDetails(std::string to, std::string about)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Send off message
|
// Send off message
|
||||||
|
#ifdef P3DISC_DEBUG
|
||||||
|
di->print(std::cerr, 5);
|
||||||
|
#endif
|
||||||
sendItem(di);
|
sendItem(di);
|
||||||
|
|
||||||
#ifdef P3DISC_DEBUG
|
#ifdef P3DISC_DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user