* Disabled Thread debugging.

* Fixed up bdProxyId initialisation
 * Improved Error Code translation (for unknown entries)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4826 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2012-01-20 17:30:16 +00:00
parent 6b2a6e771b
commit f08bcc153e
3 changed files with 15 additions and 3 deletions

View File

@ -34,6 +34,8 @@
#include "util/bdnet.h"
#include "util/bdrandom.h"
#include <sstream>
/*
* #define DEBUG_PROXY_CONNECTION 1
* #define DEBUG_NODE_CONNECTION 1
@ -3375,6 +3377,11 @@ std::string decodeConnectionErrorType(uint32_t errcode)
switch(errtype)
{
default:
{
std::ostringstream out;
out << "(" << errtype << ")";
namedtype += out.str();
}
break;
case BITDHT_CONNECT_ERROR_GENERIC:
namedtype = "GENERIC";
@ -3427,6 +3434,11 @@ std::string decodeConnectionErrorSource(uint32_t errcode)
switch(errsrc)
{
default:
{
std::ostringstream out;
out << "(" << errsrc << ")";
namedtype += out.str();
}
break;
case BITDHT_CONNECT_ERROR_SOURCE_START:
namedtype = "START";

View File

@ -153,8 +153,8 @@ class bdProxyId
{
public:
bdProxyId(const bdId &in_id, uint32_t in_srctype, uint32_t errcode)
:id(in_id), srcType(in_srctype) { return; }
bdProxyId(const bdId &in_id, uint32_t in_srctype, uint32_t in_errcode)
:id(in_id), srcType(in_srctype), errcode(in_errcode) { return; }
bdProxyId() :srcType(BD_PI_SRC_UNKNOWN) { return; }

View File

@ -32,7 +32,7 @@
* #define DEBUG_THREADS 1
*******/
#define DEBUG_THREADS 1
//#define DEBUG_THREADS 1
#ifdef DEBUG_THREADS
#include <iostream>