Browse Source

test

etomic
jl777 8 years ago
parent
commit
ca675e3206
  1. 8
      iguana/dpow/dpow_network.c

8
iguana/dpow/dpow_network.c

@ -873,13 +873,13 @@ void dpow_nanomsg_update(struct supernet_info *myinfo)
}
//dp->crcs[firstz] = crc32;
}
} else printf("crc error %x vs %x or no dp.%p\n",crc32,np->crc32,dp);
} else printf("crc error %x vs %x or no dp.%p [%s]\n",crc32,np->crc32,dp,np->symbol);
} else printf("ignore np->datalen.%d %d (size %d - %ld)\n",np->datalen,(int32_t)(size-sizeof(*np)),size,sizeof(*np));
}
}
} else printf("wrong version\n");
} else printf("illegal size.%d\n",size);
if ( np != 0 )
nn_freemsg(np), np = 0;
}
} else printf("no packets\n");
portable_mutex_unlock(&myinfo->dpowmutex);
n = 0;
if ( (size= nn_recv(myinfo->dexsock,&dexp,NN_MSG,0)) >= 0 )

Loading…
Cancel
Save