mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-31 18:29:02 -04:00
debugging of GxsTunnel service - fixed transport layer
This commit is contained in:
parent
a29f15ae32
commit
6951d730a5
5 changed files with 91 additions and 6 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include "gxstunnel/rsgxstunnelitems.h"
|
||||
|
||||
//#define GXS_TUNNEL_ITEM_DEBUG 1
|
||||
#define GXS_TUNNEL_ITEM_DEBUG 1
|
||||
|
||||
std::ostream& RsGxsTunnelDHPublicKeyItem::print(std::ostream &out, uint16_t indent)
|
||||
{
|
||||
|
@ -105,9 +105,7 @@ RsItem *RsGxsTunnelSerialiser::deserialise(void *data, uint32_t *pktsize)
|
|||
// look what we have...
|
||||
if (*pktsize < rssize) /* check size */
|
||||
{
|
||||
#ifdef GXS_TUNNEL_ITEM_DEBUG
|
||||
std::cerr << "GxsTunnel deserialisation: not enough size: pktsize=" << *pktsize << ", rssize=" << rssize << std::endl ;
|
||||
#endif
|
||||
return NULL; /* not enough data */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue