Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
1f4718fac9
  1. 6
      iguana/iguana_accept.c

6
iguana/iguana_accept.c

@ -73,8 +73,8 @@ void iguana_acceptloop(void *args)
printf("another daemon running, no need to have iguana accept connections\n");
return;
}
if ( port != IGUANA_RPCPORT )
return;
//if ( port != IGUANA_RPCPORT )
// return;
sleep(5);
}
printf(">>>>>>>>>>>>>>>> iguana_bindloop 127.0.0.1:%d bind sock.%d\n",port,coin->bindsock);
@ -87,7 +87,7 @@ void iguana_acceptloop(void *args)
if ( poll(&pfd,1,100) <= 0 )
continue;
clilen = sizeof(cli_addr);
//printf("ACCEPT (%s:%d) on sock.%d\n","127.0.0.1",coin->chain->portp2p,coin->bindsock);
printf("ACCEPT (%s:%d) on sock.%d\n","127.0.0.1",coin->chain->portp2p,coin->bindsock);
sock = accept(coin->bindsock,(struct sockaddr *)&cli_addr,&clilen);
if ( sock < 0 )
{

Loading…
Cancel
Save