Browse Source

Test

etomic
jl777 8 years ago
parent
commit
153f6f3992
  1. 2
      iguana/exchanges/LP_commands.c
  2. 6
      iguana/exchanges/LP_forwarding.c
  3. 2
      iguana/exchanges/LP_network.c

2
iguana/exchanges/LP_commands.c

@ -295,7 +295,7 @@ forwardhex(pubkey,hex)\n\
{
if ( strcmp(method,"register") == 0 )
{
printf("nonLP got (%s)\n",jprint(argjson,0));
//printf("nonLP got (%s)\n",jprint(argjson,0));
retstr = clonestr("{\"result\":\"success\",\"register\":\"received\"}");
}
}

6
iguana/exchanges/LP_forwarding.c

@ -176,8 +176,10 @@ int32_t LP_forwarding_register(bits256 pubkey,char *publicaddr,uint16_t publicpo
if ( peer->pushsock >= 0 )
{
if ( LP_send(peer->pushsock,argstr,arglen,0) != arglen )
printf("you can ignore error sending command to %s:%u\n",peer->ipaddr,peer->port);
//else printf("sent register to %s:%u\n",peer->ipaddr,peer->port);
{
if ( strncmp(peer->ipaddr,"5.9.253",strlen("5.9.253")) == 0 )
printf("error registering with %s:%u\n",peer->ipaddr,peer->port);
}
n++;
}
//printf("register.(%s) %s %u with (%s)\n",publicaddr,ipaddr,publicport,peer->ipaddr);

2
iguana/exchanges/LP_network.c

@ -63,7 +63,7 @@ int32_t LP_send(int32_t sock,void *msg,int32_t sendlen,int32_t freeflag)
//portable_mutex_unlock(&LP_networkmutex);
usleep(1000);
}
printf("you can ignore: error LP_send sock.%d, i.%d timeout.(%s) %s\n",sock,i,(char *)msg,nn_strerror(nn_errno()));
//printf("you can ignore: error LP_send sock.%d, i.%d timeout.(%s) %s\n",sock,i,(char *)msg,nn_strerror(nn_errno()));
if ( freeflag != 0 )
free(msg);
return(-1);

Loading…
Cancel
Save