mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed debug output in pqissl and pqissllistenner
This commit is contained in:
parent
d5d445a7b8
commit
c599b5a627
@ -716,10 +716,11 @@ int pqissl::Initiate_Connection()
|
||||
//std::cerr << "Setting Connect Timeout " << mConnectTimeout << " Seconds into Future " << std::endl;
|
||||
|
||||
sockaddr_storage_ipv4_to_ipv6(addr);
|
||||
|
||||
#ifdef PQISSL_DEBUG
|
||||
std::cerr << __PRETTY_FUNCTION__ << " Connecting To: "
|
||||
<< PeerId().toStdString() <<" via: "
|
||||
<< sockaddr_storage_tostring(addr) << std::endl;
|
||||
#endif
|
||||
|
||||
if (0 != (err = unix_connect(osock, addr)))
|
||||
{
|
||||
@ -730,11 +731,13 @@ int pqissl::Initiate_Connection()
|
||||
sockfd = osock;
|
||||
return 0;
|
||||
default:
|
||||
#ifdef PQISSL_DEBUG
|
||||
std::cerr << __PRETTY_FUNCTION__ << " Failure connect "
|
||||
<< sockaddr_storage_tostring(addr)
|
||||
<< " returns: "
|
||||
<< err << " -> errno: " << errno << " "
|
||||
<< socket_errorType(errno) << std::endl;
|
||||
#endif
|
||||
|
||||
net_internal_close(osock);
|
||||
osock = -1;
|
||||
|
@ -119,8 +119,10 @@ int pqissllistenbase::setuplisten()
|
||||
reinterpret_cast<uint8_t*>(&no), sizeof(no));
|
||||
if (err) std::cerr << __PRETTY_FUNCTION__
|
||||
<< ": Error setting IPv6 socket dual stack" << std::endl;
|
||||
#ifdef DEBUG_LISTENNER
|
||||
else std::cerr << __PRETTY_FUNCTION__
|
||||
<< ": Success setting IPv6 socket dual stack" << std::endl;
|
||||
#endif
|
||||
#endif // IPV6_V6ONLY
|
||||
|
||||
/********************************** WINDOWS/UNIX SPECIFIC PART ******************/
|
||||
|
Loading…
Reference in New Issue
Block a user