From 6f5188b6de5410a6baffb7001ccdb07d749db7d4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 15 Oct 2016 10:48:46 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_network.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 257055d0b..38561b8a8 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -102,6 +102,7 @@ void dpow_nanomsg_update(struct supernet_info *myinfo) int32_t n=0,size,firstz = -1; uint32_t crc32; struct dpow_nanomsghdr *np; while ( (size= nn_recv(myinfo->DPOW.sock,&np,NN_MSG,0)) >= 0 ) { + printf("nn_recv size.%d\n",size); n++; if ( size >= 0 ) { @@ -113,7 +114,7 @@ void dpow_nanomsg_update(struct supernet_info *myinfo) myinfo->DPOW.crcs[firstz] = crc32; printf("NANORECV ht.%d channel.%08x (%d) crc32.%08x:%08x datalen.%d:%d\n",np->height,np->channel,size,np->crc32,crc32,np->datalen,(int32_t)(size - sizeof(*np))); dpow_datahandler(myinfo,np->channel,np->height,np->packet,np->datalen); - } + } else printf("crc %08x mismatch %08x\n",crc32,np->crc32); } else printf("np->datalen.%d (size %d - %ld)\n",np->datalen,size,sizeof(*np)); if ( np != 0 ) nn_freemsg(np);