Browse Source

Test

etomic
jl777 8 years ago
parent
commit
0b51b6b26d
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 6
      iguana/exchanges/LP_network.c

2
iguana/exchanges/LP_nativeDEX.c

@ -312,7 +312,7 @@ int32_t LP_mainloop_iter(char *myipaddr,struct LP_peerinfo *mypeer,int32_t pubso
{
char keepalive[128];
sprintf(keepalive,"{\"method\":\"keepalive\"}");
printf("send keepalive\n");
//printf("send keepalive\n");
LP_send(pullsock,keepalive,0);
}
counter++;

6
iguana/exchanges/LP_network.c

@ -145,11 +145,11 @@ void LP_psockloop(void *_ptr)
}
else if ( (pfds[n].revents & POLLIN) != 0 )
{
printf("%s has pollin\n",ptr->sendaddr);
//printf("%s has pollin\n",ptr->sendaddr);
if ( (size= nn_recv(ptr->recvsock,&buf,NN_MSG,0)) > 0 )
{
sendsock = ptr->sendsock;
printf("[%s]\n",(char *)buf);
//printf("[%s]\n",(char *)buf);
break;
}
}
@ -169,7 +169,7 @@ void LP_psockloop(void *_ptr)
}
else if ( (pfds[n].revents & POLLIN) != 0 )
{
printf("%s paired has pollin\n",ptr->sendaddr);
//printf("%s paired has pollin\n",ptr->sendaddr);
if ( (size= nn_recv(ptr->sendsock,&buf,NN_MSG,0)) > 0 )
{
ptr->lasttime = now;

Loading…
Cancel
Save