aboutsummaryrefslogtreecommitdiffstats
path: root/jrt_test/src/jrt-test/simpleserver/simpleserver.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-05-10 11:25:48 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-05-10 12:25:38 +0000
commit4412aace869986be3a1060f78f367841353d3384 (patch)
treef4b5e1f6da5eaf1563f3b2fd64779800acfd5796 /jrt_test/src/jrt-test/simpleserver/simpleserver.cpp
parent840d4e0578dc627b75bcd0050f1b253e84cc30ed (diff)
Simplify the supervisor responsibility
Diffstat (limited to 'jrt_test/src/jrt-test/simpleserver/simpleserver.cpp')
-rw-r--r--jrt_test/src/jrt-test/simpleserver/simpleserver.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/jrt_test/src/jrt-test/simpleserver/simpleserver.cpp b/jrt_test/src/jrt-test/simpleserver/simpleserver.cpp
index 89d8cd881a8..b45d7986842 100644
--- a/jrt_test/src/jrt-test/simpleserver/simpleserver.cpp
+++ b/jrt_test/src/jrt-test/simpleserver/simpleserver.cpp
@@ -38,8 +38,7 @@ public:
void rpc_inc(FRT_RPCRequest *req)
{
- req->GetReturn()->AddInt32(req->GetParams()->GetValue(0)._intval32
- + 1);
+ req->GetReturn()->AddInt32(req->GetParams()->GetValue(0)._intval32 + 1);
}
void rpc_blob(FRT_RPCRequest *req)
@@ -79,10 +78,10 @@ App::Main()
printf("usage: %s <listenspec>\n", _argv[0]);
return 1;
}
- FRT_Supervisor orb;
- Server server(&orb);
- orb.Listen(_argv[1]);
- orb.Main();
+ fnet::frt::StandaloneFRT frtServer;
+ Server server(&frtServer.supervisor());
+ frtServer.supervisor().Listen(_argv[1]);
+ frtServer.wait_finished();
return 0;
}