From c307f09ca63f5dd609be0b3f1c077cd3bc1a9266 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 29 Nov 2018 23:42:11 +0100 Subject: core: implement message sending --- src/control_connection.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/control_connection.hpp') diff --git a/src/control_connection.hpp b/src/control_connection.hpp index e868f99..50eee82 100644 --- a/src/control_connection.hpp +++ b/src/control_connection.hpp @@ -5,7 +5,9 @@ #include +#include #include +#include #include #include @@ -56,6 +58,8 @@ struct control_connection : keyed, std::enable_shared_from_t */ void close(); + void send(std::string message); + private: friend pointer make_control_connection(protocol::socket &&socket); @@ -65,6 +69,7 @@ struct control_connection : keyed, std::enable_shared_from_t boost::asio::streambuf m_in{}; boost::asio::streambuf m_out{}; std::istream m_input{&m_in}; + std::ostream m_output{&m_out}; std::set> m_listeners{}; bool m_running{}; }; -- cgit v1.2.3