mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
remved debug output in udlstck
This commit is contained in:
parent
c98416dc28
commit
9f9f0216f0
@ -64,8 +64,8 @@ class rsUdpStack: public UdpStack, public pqiNetListener
|
|||||||
/* from pqiNetListener */
|
/* from pqiNetListener */
|
||||||
virtual bool resetListener(const struct sockaddr_storage &local)
|
virtual bool resetListener(const struct sockaddr_storage &local)
|
||||||
{
|
{
|
||||||
std::cerr << "rsUdpStack::resetListener(" << sockaddr_storage_tostring(local) << ")";
|
//std::cerr << "rsUdpStack::resetListener(" << sockaddr_storage_tostring(local) << ")";
|
||||||
std::cerr << std::endl;
|
//std::cerr << std::endl;
|
||||||
|
|
||||||
if (local.ss_family != AF_INET)
|
if (local.ss_family != AF_INET)
|
||||||
{
|
{
|
||||||
@ -90,16 +90,16 @@ class rsFixedUdpStack: public UdpStack, public pqiNetListener
|
|||||||
:UdpStack(testmode, local) { return; }
|
:UdpStack(testmode, local) { return; }
|
||||||
|
|
||||||
/* from pqiNetListener */
|
/* from pqiNetListener */
|
||||||
virtual bool resetListener(const struct sockaddr_storage &local)
|
virtual bool resetListener(const struct sockaddr_storage & /* local */)
|
||||||
{
|
{
|
||||||
struct sockaddr_in addr;
|
struct sockaddr_in addr;
|
||||||
getLocalAddress(addr);
|
getLocalAddress(addr);
|
||||||
|
|
||||||
// The const_cast below is not so nice but without it, the compiler can't
|
// The const_cast below is not so nice but without it, the compiler can't
|
||||||
// find the correct operator<<(). No idea why!
|
// find the correct operator<<(). No idea why!
|
||||||
std::cerr << "rsFixedUdpStack::resetListener(" << sockaddr_storage_tostring(local) << ")";
|
//std::cerr << "rsFixedUdpStack::resetListener(" << sockaddr_storage_tostring(local) << ")";
|
||||||
std::cerr << " Resetting with original addr: " << const_cast<const struct sockaddr_in &>(addr);
|
//std::cerr << " Resetting with original addr: " << const_cast<const struct sockaddr_in &>(addr);
|
||||||
std::cerr << std::endl;
|
//std::cerr << std::endl;
|
||||||
|
|
||||||
return resetAddress(addr);
|
return resetAddress(addr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user