summary refs log tree commit diff
path: root/src/rpcStub.hpp
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-21 19:21:32 +0200
committerGitHub <noreply@github.com>2021-05-21 19:21:32 +0200
commit9c9c948ae9eb1959aabd70eff968dd49272a05fb (patch)
tree096bacda4fc8b765a7712330850b2b50657112bb /src/rpcStub.hpp
parentMerge branch 'master' of https://github.com/discord-open-source/discord-voice (diff)
parent[del] Removed protobuf build files (diff)
downloadserver-9c9c948ae9eb1959aabd70eff968dd49272a05fb.tar.xz
Merge pull request #19 from ItsNewe/master
Set up the initial project structure
Diffstat (limited to 'src/rpcStub.hpp')
-rw-r--r--src/rpcStub.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/rpcStub.hpp b/src/rpcStub.hpp
new file mode 100644

index 00000000..d183cf3c --- /dev/null +++ b/src/rpcStub.hpp
@@ -0,0 +1,15 @@ +#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 \ No newline at end of file