1 2 3 4 5 6 7 8 9 10 11 12
#include <grpc++/grpc++.h> #include "protodefs/include/protos.grpc.pb.h" #include "rtcPeerHandler.hpp" class rpcStub{ public: rpcStub(std::shared_ptr<rtcPeerHandler> peerHandler, int port); std::unique_ptr<grpc::Server> server; private: std::shared_ptr<rtcPeerHandler> ph; };