[edit] Set rpcStub.server to public

This commit is contained in:
Newe 2021-05-21 11:19:56 +02:00
parent 7d40250c11
commit 80282f6ba3
2 changed files with 4 additions and 2 deletions

View File

@ -27,10 +27,11 @@
int main (int argc, char** argv){ int main (int argc, char** argv){
auto handler = std::make_shared<rtcPeerHandler>(); auto commsHandler = std::make_shared<rtcPeerHandler>();
auto rpcHandler = std::unique_ptr<rpcStub>(); auto rpcHandler = std::unique_ptr<rpcStub>();
std::cout << "Server created" <<std::endl; std::cout << "Server created" <<std::endl;
//rpcHandler->server->Wait(); //blocking, this will need to be threaded
return 0; return 0;
} }

View File

@ -4,7 +4,8 @@
class rpcStub{ class rpcStub{
public: public:
rpcStub(int port); rpcStub(int port);
private:
std::unique_ptr<grpc::Server> server; std::unique_ptr<grpc::Server> server;
private:
}; };