diff options
Diffstat (limited to 'whiteboard.h')
-rw-r--r-- | whiteboard.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/whiteboard.h b/whiteboard.h deleted file mode 100644 index 53036ac..0000000 --- a/whiteboard.h +++ /dev/null @@ -1,35 +0,0 @@ -#pragma once - -#include <filesystem> -#include <memory> -#include <mutex> -#include <string> - -#include <boost/asio/ip/tcp.hpp> - -#include "diff.h" -#include "config.h" -#include "connectionregistry.h" -#include "storage.h" - -class Whiteboard -{ -public: - Whiteboard(); - int run(int argc, char* argv[]); - -private: - std::unique_ptr<Config> m_config; - std::unique_ptr<Storage> m_storage; - std::mutex m_storage_mutex; - - ConnectionRegistry m_registry; - - std::unique_ptr<boost::asio::io_context> m_ioc; - std::unique_ptr<boost::asio::ip::tcp::acceptor> m_acceptor; - - void do_accept(); - void on_accept(boost::system::error_code ec, boost::asio::ip::tcp::socket socket); - void touch_all_connections(); -}; - |