|
|
@ -18,7 +18,7 @@ |
|
|
|
// marketmaker
|
|
|
|
//
|
|
|
|
|
|
|
|
char *LP_issue_curl(char *debugstr,char *destip,uint16_t port,char *url) |
|
|
|
/*char *LP_issue_curl(char *debugstr,char *destip,uint16_t port,char *url)
|
|
|
|
{ |
|
|
|
char *retstr = 0; int32_t maxerrs; struct LP_peerinfo *peer = 0; |
|
|
|
peer = LP_peerfind((uint32_t)calc_ipbits(destip),port); |
|
|
@ -40,7 +40,7 @@ char *LP_issue_curl(char *debugstr,char *destip,uint16_t port,char *url) |
|
|
|
peer->good++; |
|
|
|
} |
|
|
|
return(retstr); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
char *LP_isitme(char *destip,uint16_t destport) |
|
|
|
{ |
|
|
@ -51,16 +51,6 @@ char *LP_isitme(char *destip,uint16_t destport) |
|
|
|
} else return(0); |
|
|
|
} |
|
|
|
|
|
|
|
char *issue_LP_psock(char *destip,uint16_t destport,int32_t ispaired) |
|
|
|
{ |
|
|
|
char url[512],*retstr; |
|
|
|
sprintf(url,"http://%s:%u/api/stats/psock?ispaired=%d",destip,destport-1,ispaired); |
|
|
|
//return(LP_issue_curl("psock",destip,destport,url));
|
|
|
|
retstr = issue_curlt(url,LP_HTTP_TIMEOUT*3); |
|
|
|
printf("issue_LP_psock got (%s) from %s\n",retstr,destip); |
|
|
|
return(retstr); |
|
|
|
} |
|
|
|
|
|
|
|
char *LP_apicall(struct iguana_info *coin,char *method,char *params) |
|
|
|
{ |
|
|
|
cJSON *retjson; char *retstr; |
|
|
|