From d5f989d7c3d5b64a7fa12ebbe480f0ad554700e7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Jan 2016 12:41:43 -0300 Subject: [PATCH] test --- iguana/iguana_peers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 3c5a4ad5d..6bec935d5 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -400,7 +400,7 @@ int32_t iguana_send(struct iguana_info *coin,struct iguana_peer *addr,uint8_t *s } } addr->totalsent += len; - printf(" sent.%d bytes to %s\n",len,addr->ipaddr);// getchar(); + printf(" %s sent.%d bytes to %s\n",(char *)&serialized[4],len,addr->ipaddr);// getchar(); return(len); } @@ -440,7 +440,7 @@ int32_t iguana_recv(int32_t usock,uint8_t *recvbuf,int32_t len) { if ( (recvlen= (int32_t)recv(usock,recvbuf,remains,0)) < 0 ) { - //printf("recv errno.%d %s\n",errno,strerror(errno)); + printf("recv errno.%d %s\n",errno,strerror(errno)); if ( errno == EAGAIN ) { #ifdef IGUANA_DEDICATED_THREADS @@ -457,7 +457,7 @@ int32_t iguana_recv(int32_t usock,uint8_t *recvbuf,int32_t len) remains -= recvlen; recvbuf = &recvbuf[recvlen]; } else usleep(10000); - if ( 0 && remains > 0 ) + //if ( 0 && remains > 0 ) printf("got %d remains.%d of total.%d\n",recvlen,remains,len); } }