summaryrefslogtreecommitdiffhomepage
path: root/whiteboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'whiteboard.h')
-rw-r--r--whiteboard.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/whiteboard.h b/whiteboard.h
index c000e36..15d764a 100644
--- a/whiteboard.h
+++ b/whiteboard.h
@@ -26,11 +26,10 @@ private:
ConnectionRegistry m_registry;
- using connection = std::shared_ptr<boost::beast::websocket::stream<boost::asio::ip::tcp::socket>>;
- std::string handle_request(connection& c, const std::string& request);
- void notify_other_connections_diff(connection& c, const std::string& id, const Diff& diff); // notify all other id-related connections about changes
- void notify_other_connections_pos(connection& c, const std::string& id); // notify all other id-related connections about changes
- void do_session(boost::asio::ip::tcp::socket socket);
- void storage_cleanup();
+ 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);
};