diff options
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(); }; |