|
|
@ -918,7 +918,7 @@ int32_t basilisk_swapget(struct supernet_info *myinfo,struct basilisk_swap *swap |
|
|
|
memset(srchash.bytes,0,sizeof(srchash)); |
|
|
|
memset(desthash.bytes,0,sizeof(desthash)); |
|
|
|
crc32 = calc_crc32(0,ptr,size); |
|
|
|
printf("gotmsg.[%d] crc.%x\n",size,crc32); |
|
|
|
//printf("gotmsg.[%d] crc.%x\n",size,crc32);
|
|
|
|
offset = 0; |
|
|
|
for (i=0; i<32; i++) |
|
|
|
srchash.bytes[i] = ptr[offset++]; |
|
|
@ -964,7 +964,7 @@ uint32_t basilisk_swapsend(struct supernet_info *myinfo,struct basilisk_swap *sw |
|
|
|
memcpy(&buf[offset],data,datalen), offset += datalen; |
|
|
|
if ( (sentbytes= nn_send(swap->pushsock,buf,offset,0)) != offset ) |
|
|
|
printf("sentbytes.%d vs offset.%d\n",sentbytes,offset); |
|
|
|
else printf("send.[%d] %x\n",sentbytes,msgbits); |
|
|
|
//else printf("send.[%d] %x\n",sentbytes,msgbits);
|
|
|
|
free(buf); |
|
|
|
return(0); |
|
|
|
} |
|
|
|