From 4eedb599d8de5559daa4678c7520bb36968e767e Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 28 Jan 2023 21:24:11 +0100 Subject: Server to client: diffs --- whiteboard.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'whiteboard.h') diff --git a/whiteboard.h b/whiteboard.h index 818fcfe..c000e36 100644 --- a/whiteboard.h +++ b/whiteboard.h @@ -7,6 +7,7 @@ #include +#include "diff.h" #include "config.h" #include "connectionregistry.h" #include "storage.h" @@ -27,7 +28,7 @@ private: using connection = std::shared_ptr>; std::string handle_request(connection& c, const std::string& request); - void notify_other_connections_file(connection& c, const std::string& id); // notify all other id-related connections about changes + 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(); -- cgit v1.2.3