summary refs log tree commit diff
path: root/src/mongoStub.hpp
diff options
context:
space:
mode:
authorNewe <speedy.wolfy@outlook.com>2021-05-25 23:35:24 +0200
committerNewe <speedy.wolfy@outlook.com>2021-05-25 23:35:24 +0200
commite04c5bf1380760a3a48bd65e8e8ffe4dd651a2d4 (patch)
tree353faf7f1016fb3ce80568e94fd8525f36d67970 /src/mongoStub.hpp
parent[edit] Ignore event if emited by a vServer (diff)
downloadserver-e04c5bf1380760a3a48bd65e8e8ffe4dd651a2d4.tar.xz
[add] Udp request handler mockup
Diffstat (limited to 'src/mongoStub.hpp')
-rw-r--r--src/mongoStub.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongoStub.hpp b/src/mongoStub.hpp

index 18b899ae..2809142f 100644 --- a/src/mongoStub.hpp +++ b/src/mongoStub.hpp
@@ -23,10 +23,6 @@ class mongoStub{ std::vector<mongoMessage> getNewMessages(mongocxx::change_stream* colCs); - void handleUdpRequest(); - - void handleVoiceRequest(); - mongocxx::collection getCol() const { return col; } @@ -36,7 +32,10 @@ class mongoStub{ mongocxx::client client{mongocxx::uri{}}; mongocxx::database db; mongocxx::collection col; - mongocxx::change_stream* colCs = nullptr; + mongocxx::change_stream* colCs = nullptr; + + void handleUdpRequest(std::string address, int port, std::string mode); + void handleVoiceRequest(); }; #endif