diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-03-03 16:55:33 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-03-03 16:55:33 +0100 |
commit | 96476044387e98ee1ee7a6eb992b521bd447813c (patch) | |
tree | caffaaef53a0afeafb5b68c460b42e98e72044c4 /whiteboard.h | |
parent | c9fa963e71258c5adfb71cf1996cd1bcb33df0bb (diff) |
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(); -}; - |