diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2018-12-01 13:01:36 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2018-12-01 13:01:36 +0100 |
| commit | eb4194633670f8813094aa87eba54b07d5453196 (patch) | |
| tree | cc2424a4f43a2b0bf0201c36ee527790be07c1ea /src/control_connection.hpp | |
| parent | 4ded35e5f876d5e8daab47e429450f9bf5e32666 (diff) | |
| download | wanda-eb4194633670f8813094aa87eba54b07d5453196.tar.xz wanda-eb4194633670f8813094aa87eba54b07d5453196.zip | |
wanda: remove boost asio and program_options
Diffstat (limited to 'src/control_connection.hpp')
| -rw-r--r-- | src/control_connection.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
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 <boost/asio.hpp> +#include <asio.hpp> #include <istream> #include <memory> #include <ostream> #include <set> #include <string> +#include <system_error> namespace wanda { struct control_connection : keyed<control_connection>, std::enable_shared_from_this<control_connection> { - using protocol = boost::asio::local::stream_protocol; + using protocol = asio::local::stream_protocol; using pointer = std::shared_ptr<control_connection>; 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<std::byte> @@ -78,8 +79,8 @@ struct control_connection : keyed<control_connection>, 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<listener *> m_listeners{}; |
