mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
cleaned up some of the std::cerr output.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4824 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c05f90bda3
commit
6ac2cad4aa
@ -1757,10 +1757,12 @@ bool p3LinkMgrIMPL::locked_CheckPotentialAddr(const struct sockaddr_in *addr, t
|
|||||||
- check net against our local address.
|
- check net against our local address.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef LINKMGR_DEBUG
|
||||||
std::cerr << "p3LinkMgrIMPL::locked_CheckPotentialAddr() Checking sameNet against: ";
|
std::cerr << "p3LinkMgrIMPL::locked_CheckPotentialAddr() Checking sameNet against: ";
|
||||||
std::cerr << rs_inet_ntoa(mLocalAddress.sin_addr);
|
std::cerr << rs_inet_ntoa(mLocalAddress.sin_addr);
|
||||||
std::cerr << ")";
|
std::cerr << ")";
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (sameNet(&(mLocalAddress.sin_addr), &(addr->sin_addr)))
|
if (sameNet(&(mLocalAddress.sin_addr), &(addr->sin_addr)))
|
||||||
{
|
{
|
||||||
|
@ -51,6 +51,7 @@ int fixme(char *str, int n);
|
|||||||
//! controlling data rates
|
//! controlling data rates
|
||||||
/*!
|
/*!
|
||||||
* For controlling data rates.
|
* For controlling data rates.
|
||||||
|
* #define DEBUG_RATECAP 1
|
||||||
*/
|
*/
|
||||||
class RateInterface
|
class RateInterface
|
||||||
{
|
{
|
||||||
@ -110,13 +111,17 @@ virtual void setRateCap(float val_in, float val_out)
|
|||||||
{
|
{
|
||||||
if ((val_in == 0) && (val_out == 0))
|
if ((val_in == 0) && (val_out == 0))
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_RATECAP
|
||||||
std::cerr << "RateInterface::setRateCap() Now disabled" << std::endl;
|
std::cerr << "RateInterface::setRateCap() Now disabled" << std::endl;
|
||||||
|
#endif
|
||||||
bwCapEnabled = false;
|
bwCapEnabled = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_RATECAP
|
||||||
std::cerr << "RateInterface::setRateCap() Enabled ";
|
std::cerr << "RateInterface::setRateCap() Enabled ";
|
||||||
std::cerr << "in: " << bwCap_in << " out: " << bwCap_out << std::endl;
|
std::cerr << "in: " << bwCap_in << " out: " << bwCap_out << std::endl;
|
||||||
|
#endif
|
||||||
bwCapEnabled = true;
|
bwCapEnabled = true;
|
||||||
bwCap_in = val_in;
|
bwCap_in = val_in;
|
||||||
bwCap_out = val_out;
|
bwCap_out = val_out;
|
||||||
|
@ -463,14 +463,16 @@ int pqiperson::connect(uint32_t type, struct sockaddr_in raddr,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cerr << "pqiperson::connect() WARNING, resetting for new connection attempt" << std::endl;
|
|
||||||
#ifdef PERSON_DEBUG
|
#ifdef PERSON_DEBUG
|
||||||
|
std::cerr << "pqiperson::connect() WARNING, resetting for new connection attempt" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
/* set the parameters */
|
/* set the parameters */
|
||||||
pqioutput(PQL_WARNING, pqipersonzone, "pqiperson::connect reset() before connection attempt");
|
pqioutput(PQL_WARNING, pqipersonzone, "pqiperson::connect reset() before connection attempt");
|
||||||
(it->second)->reset();
|
(it->second)->reset();
|
||||||
|
|
||||||
|
#ifdef PERSON_DEBUG
|
||||||
std::cerr << "pqiperson::connect() WARNING, clearing rate cap" << std::endl;
|
std::cerr << "pqiperson::connect() WARNING, clearing rate cap" << std::endl;
|
||||||
|
#endif
|
||||||
setRateCap(0,0);
|
setRateCap(0,0);
|
||||||
|
|
||||||
#ifdef PERSON_DEBUG
|
#ifdef PERSON_DEBUG
|
||||||
|
@ -37,8 +37,6 @@
|
|||||||
* #define DEBUG_BANLIST 1
|
* #define DEBUG_BANLIST 1
|
||||||
****/
|
****/
|
||||||
|
|
||||||
#define DEBUG_BANLIST 1
|
|
||||||
|
|
||||||
|
|
||||||
/* DEFINE INTERFACE POINTER! */
|
/* DEFINE INTERFACE POINTER! */
|
||||||
//RsBanList *rsBanList = NULL;
|
//RsBanList *rsBanList = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user