aboutsummaryrefslogtreecommitdiff
path: root/src/commander.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commander.hpp')
-rw-r--r--src/commander.hpp11
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;