.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@8947 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-09-18 06:31:43 +00:00
parent f5e2736b9a
commit 97fc2a95ff
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,5 @@
#include <Core/Core.h>
// Note: Core.h needs to be included before Rpc.h because of Win32 rpc.h name clash problem
#include <Core/Rpc/Rpc.h>
using namespace Upp;
@ -8,7 +10,7 @@ void Compute(double a, String op, double b)
Cout() << a << op << b << '=';
XmlRpcRequest call("127.0.0.1:1234");
if(call("compute", a, op, b) >> result)
Cout() << result;
Cout() << result;
else
Cout() << " error: " << call.GetError();
Cout() << '\n';
@ -18,7 +20,7 @@ CONSOLE_APP_MAIN
{
Time tm;
XmlRpcRequest("127.0.0.1:1234")("ping") >> tm;
Cout() << tm << '\n';
Cout() << tm << '\n';
Compute(12, "+", 12);
Compute(12, "*", 12);

View file

@ -1,3 +1,5 @@
#include <Core/Core.h>
// Note: Core.h needs to be included before Rpc.h because of Win32 rpc.h name clash problem
#include <Core/Rpc/Rpc.h>
using namespace Upp;