debugging of GxsTunnel service - fixed transport layer

This commit is contained in:
csoler 2015-11-28 18:02:57 -05:00
parent a29f15ae32
commit 6951d730a5
5 changed files with 91 additions and 6 deletions

View file

@ -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 */
}