Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
8fb57638ae
  1. 3
      iguana/iguana_accept.c

3
iguana/iguana_accept.c

@ -65,7 +65,8 @@ void iguana_acceptloop(void *args)
struct iguana_peer *addr; struct iguana_info *coin = args; struct iguana_peer *addr; struct iguana_info *coin = args;
struct pollfd pfd; int32_t sock; struct iguana_accept *ptr; struct pollfd pfd; int32_t sock; struct iguana_accept *ptr;
socklen_t clilen; struct sockaddr_in cli_addr; char ipaddr[64]; uint32_t ipbits; socklen_t clilen; struct sockaddr_in cli_addr; char ipaddr[64]; uint32_t ipbits;
coin->bindsock = iguana_socket(1,"0.0.0.0",coin->chain->portp2p); while ( (coin->bindsock= iguana_socket(1,"0.0.0.0",coin->chain->portp2p)) < 0 )
sleep(5);
printf("iguana_bindloop 127.0.0.1:%d bind sock.%d\n",coin->chain->portp2p,coin->bindsock); printf("iguana_bindloop 127.0.0.1:%d bind sock.%d\n",coin->chain->portp2p,coin->bindsock);
while ( coin->bindsock >= 0 ) while ( coin->bindsock >= 0 )
{ {

Loading…
Cancel
Save