From eb4194633670f8813094aa87eba54b07d5453196 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 1 Dec 2018 13:01:36 +0100 Subject: wanda: remove boost asio and program_options --- src/control_connection.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/control_connection.hpp') diff --git a/src/control_connection.hpp b/src/control_connection.hpp index 24d3276..bd3db9d 100644 --- a/src/control_connection.hpp +++ b/src/control_connection.hpp @@ -4,27 +4,28 @@ #include "keyed.hpp" #include "message.hpp" -#include +#include #include #include #include #include #include +#include namespace wanda { struct control_connection : keyed, std::enable_shared_from_this { - using protocol = boost::asio::local::stream_protocol; + using protocol = asio::local::stream_protocol; using pointer = std::shared_ptr; struct listener { virtual void on_close(pointer connection) {} virtual void on_received(pointer connection, message message) {} - virtual void on_error(pointer connection, boost::system::error_code) {} + virtual void on_error(pointer connection, std::error_code) {} }; enum struct state : std::underlying_type_t @@ -78,8 +79,8 @@ struct control_connection : keyed, std::enable_shared_from_t void perform_read(); protocol::socket m_socket; - boost::asio::streambuf m_in{}; - boost::asio::streambuf m_out{}; + asio::streambuf m_in{}; + asio::streambuf m_out{}; std::istream m_input{&m_in}; std::ostream m_output{&m_out}; std::set m_listeners{}; -- cgit v1.2.3