aboutsummaryrefslogtreecommitdiff
path: root/src/commander.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-11-30 16:52:54 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-11-30 16:52:54 +0100
commit3abece6f0a7edca476ee0c493f30dda8f8bcefd5 (patch)
treee794f512a262cca92db6d0a5f9d41b6be64d9db0 /src/commander.hpp
parent9c2231c8fb45f32c7b1d23e14125bc58ea405e60 (diff)
downloadwanda-3abece6f0a7edca476ee0c493f30dda8f8bcefd5.tar.xz
wanda-3abece6f0a7edca476ee0c493f30dda8f8bcefd5.zip
core: stop ownership circles in connection
Diffstat (limited to 'src/commander.hpp')
-rw-r--r--src/commander.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commander.hpp b/src/commander.hpp
index 89c476a..70b231d 100644
--- a/src/commander.hpp
+++ b/src/commander.hpp
@@ -4,6 +4,7 @@
#include "control_connection.hpp"
#include "message.hpp"
+#include <boost/asio.hpp>
#include <boost/system/error_code.hpp>
#include <filesystem>
@@ -20,8 +21,10 @@ struct commander : wanda::control_connection::listener
void send(message message);
void on_error(wanda::control_connection::pointer connection, boost::system::error_code error) override;
+ void on_received(wanda::control_connection::pointer connection, message message) override;
private:
+ boost::asio::io_service & m_service;
wanda::control_connection::protocol::endpoint m_endpoint;
wanda::control_connection::protocol::socket m_socket;
wanda::control_connection::pointer m_connection;