예제 #1
0
int main()
{
    RPCServer server;

    server.registerService("sum", RPCService::shared_pointer(new SumServiceImpl()));
    // you can register as many services as you want here ...

    server.printInfo();
    server.run();

    return 0;
}
예제 #2
0
int main(int argc,char *argv[])
{
    RPCServer server;

    // register our service as "helloService"
    server.registerService("helloService",
        RPCService::shared_pointer(new epics::helloService::HelloService()));

    server.printInfo();
    server.run();

    return 0;
}