Browse Source

Test

etomic
jl777 8 years ago
parent
commit
bdb2c0a143
  1. 2
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_commands.c

@ -262,7 +262,7 @@ forwardhex(pubkey,hex)\n\
if ( strcmp(method,"register") == 0 )
{
retstr = LP_register(jbits256(argjson,"client"),jstr(argjson,"pushaddr"),juint(argjson,"pushport"));
//printf("got (%s) from register\n",retstr!=0?retstr:"");
printf("got (%s) from register\n",retstr!=0?retstr:"");
return(retstr);
}
else if ( strcmp(method,"lookup") == 0 )

2
iguana/exchanges/LP_rpc.c

@ -121,7 +121,7 @@ char *issue_LP_register(char *destip,uint16_t destport,bits256 pubkey,char *ipad
sprintf(url,"http://%s:%u/api/stats/register?client=%s&pushaddr=%s&pushport=%u",destip,destport,bits256_str(str,pubkey),ipaddr,pushport);
//return(LP_issue_curl("register",destip,destport,url));
retstr = issue_curlt(url,LP_HTTP_TIMEOUT*3);
//printf("register.(%s) -> (%s)\n",url,retstr!=0?retstr:"");
printf("register.(%s) -> (%s)\n",url,retstr!=0?retstr:"");
return(retstr);
}

Loading…
Cancel
Save