From 613ef19d2119449d516555ea2d2036d7f98c298d Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Thu, 12 Aug 2021 20:33:42 +0200 Subject: :sparkles: rtc --- rtc/src/mongoStub.hpp | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 rtc/src/mongoStub.hpp (limited to 'rtc/src/mongoStub.hpp') diff --git a/rtc/src/mongoStub.hpp b/rtc/src/mongoStub.hpp new file mode 100644 index 00000000..2809142f --- /dev/null +++ b/rtc/src/mongoStub.hpp @@ -0,0 +1,41 @@ +#ifndef MONGOSTUB_HPP +#define MONGOSTUB_HPP + +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +class mongoStub{ + public: + mongoStub(); + + struct mongoMessage{ + std::string eventName; + std::vector data; + }; + + std::vector getNewMessages(mongocxx::change_stream* colCs); + + mongocxx::collection getCol() const { return col; } + + + + private: + mongocxx::instance instance; + mongocxx::client client{mongocxx::uri{}}; + mongocxx::database db; + mongocxx::collection col; + mongocxx::change_stream* colCs = nullptr; + + void handleUdpRequest(std::string address, int port, std::string mode); + void handleVoiceRequest(); +}; + +#endif -- cgit 1.4.1