spacebar/src/rpcStub.hpp
2021-05-21 15:51:57 +02:00

15 lines
326 B
C++

#include <grpc++/grpc++.h>
#include "protodefs/include/protos.grpc.pb.h"
#include "rtcPeerHandler.hpp"
#ifndef RPCSTUB
#define RPCSTUB
class rpcStub{
public:
rpcStub(std::shared_ptr<rtcPeerHandler> peerHandler, int port);
std::unique_ptr<grpc::Server> server;
private:
std::shared_ptr<rtcPeerHandler> ph;
};
#endif