diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-21 19:05:43 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-21 19:05:43 +0100 |
commit | c464265f60ddd367786b08f5d49cd7a6d650b7d6 (patch) | |
tree | d2c747cc041a92d38ac1d25eb47fc7e398d5af7b /whiteboard.h | |
parent | 3d0592e9238a59df54b3e3b757a38fa2e7f0ccfb (diff) |
First websocket connection
Diffstat (limited to 'whiteboard.h')
-rw-r--r-- | whiteboard.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/whiteboard.h b/whiteboard.h index f50f455..d645115 100644 --- a/whiteboard.h +++ b/whiteboard.h @@ -1,8 +1,12 @@ #pragma once +#include <filesystem> +#include <memory> #include <mutex> #include <string> +#include <boost/asio/ip/tcp.hpp> + #include "config.h" #include "storage.h" @@ -13,10 +17,12 @@ public: int run(int argc, char* argv[]); private: - Config m_config; - Storage m_storage; + std::unique_ptr<Config> m_config; + std::unique_ptr<Storage> m_storage; std::mutex m_storage_mutex; + std::string handle_request(const std::string& request); + void do_session(boost::asio::ip::tcp::socket socket); void storage_cleanup(); }; |