.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@9849 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-05-20 13:32:16 +00:00
parent 75dceb474a
commit c2045dbf3a
3 changed files with 16 additions and 0 deletions

View file

@ -72,4 +72,7 @@ CONSOLE_APP_MAIN
*h = 'C';
s = sb;
DUMP(s);
String z(0, 10);
DUMPHEX(z);
}

View file

@ -26,4 +26,8 @@ CONSOLE_APP_MAIN
Compute(12, "*", 12);
Compute(12, "+56", 12);
Compute(12, "/", 0);
String res;
JsonRpcRequest("127.0.0.1:1234")("end_test") >> res;
Cout() << res << '\n';
}

View file

@ -36,6 +36,15 @@ RPC_METHOD(ping)
rpc << GetSysTime();
}
RPC_METHOD(end_test)
{
rpc << "OK";
Cout() << "Immediate reply\n";
rpc.EndRpc();
Sleep(2000);
Cout() << "Method ended now\n";
}
CONSOLE_APP_MAIN
{
Cout() << "Server..\n";