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/commander.hpp | |
| parent | 4ded35e5f876d5e8daab47e429450f9bf5e32666 (diff) | |
| download | wanda-eb4194633670f8813094aa87eba54b07d5453196.tar.xz wanda-eb4194633670f8813094aa87eba54b07d5453196.zip | |
wanda: remove boost asio and program_options
Diffstat (limited to 'src/commander.hpp')
| -rw-r--r-- | src/commander.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/commander.hpp b/src/commander.hpp index b88cd7f..6337f08 100644 --- a/src/commander.hpp +++ b/src/commander.hpp @@ -4,8 +4,7 @@ #include "control_connection.hpp" #include "message.hpp" -#include <boost/asio.hpp> -#include <boost/system/error_code.hpp> +#include <asio.hpp> #include <filesystem> #include <string> @@ -15,15 +14,15 @@ namespace wanda struct commander : wanda::control_connection::listener { - commander(boost::asio::io_service &service, std::filesystem::path socket); + commander(asio::io_service &service, std::filesystem::path socket); void start(); - 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; + void on_error(control_connection::pointer connection, std::error_code error) override; + void on_received(control_connection::pointer connection, message message) override; private: - boost::asio::io_service & m_service; + 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; |
