Browse Source

Test

etomic
jl777 7 years ago
parent
commit
ecd1601a99
  1. 4
      iguana/exchanges/LP_commands.c

4
iguana/exchanges/LP_commands.c

@ -68,6 +68,10 @@ char *stats_JSON(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,char *r
}
if ( strcmp(method,"hello") == 0 )
{
retjson = cJSON_CreateObject();
jaddstr(retjson,"result","success");
jaddstr(retjson,"status","got hello");
return(jprint(retjson,1));
//printf("got hello from %s:%u\n",ipaddr!=0?ipaddr:"",argport);
return(clonestr("{\"result\":\"success\",\"status\":\"got hello\"}"));
}

Loading…
Cancel
Save