aboutsummaryrefslogtreecommitdiff
path: root/src/control_connection.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-12-01 13:01:36 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-12-01 13:01:36 +0100
commiteb4194633670f8813094aa87eba54b07d5453196 (patch)
treecc2424a4f43a2b0bf0201c36ee527790be07c1ea /src/control_connection.cpp
parent4ded35e5f876d5e8daab47e429450f9bf5e32666 (diff)
downloadwanda-eb4194633670f8813094aa87eba54b07d5453196.tar.xz
wanda-eb4194633670f8813094aa87eba54b07d5453196.zip
wanda: remove boost asio and program_options
Diffstat (limited to 'src/control_connection.cpp')
-rw-r--r--src/control_connection.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control_connection.cpp b/src/control_connection.cpp
index b0d30d6..2ac302c 100644
--- a/src/control_connection.cpp
+++ b/src/control_connection.cpp
@@ -40,7 +40,7 @@ void control_connection::start()
void control_connection::send(message message)
{
m_output << message << '\n';
- boost::asio::async_write(m_socket, m_out, boost::asio::transfer_exactly(message.size() + 1), [that = shared_from_this(), this](auto const &error, auto const length) {
+ asio::async_write(m_socket, m_out, asio::transfer_exactly(message.size() + 1), [that = shared_from_this(), this](auto const &error, auto const length) {
if (error)
{
// TODO: Handle error
@@ -54,7 +54,7 @@ void control_connection::send(message message)
void control_connection::close()
{
- if (auto error = boost::system::error_code{}; m_socket.cancel(error))
+ if (auto error = std::error_code{}; m_socket.cancel(error))
{
for (auto &listener : m_listeners)
{
@@ -62,7 +62,7 @@ void control_connection::close()
}
}
- if (auto error = boost::system::error_code{}; m_socket.close(error))
+ if (auto error = std::error_code{}; m_socket.close(error))
{
for (auto &listener : m_listeners)
{
@@ -89,7 +89,7 @@ control_connection::state control_connection::current_state() const
void control_connection::perform_read()
{
- boost::asio::async_read_until(m_socket, m_in, '\n', [that = shared_from_this(), this](auto const &error, auto const length) {
+ asio::async_read_until(m_socket, m_in, '\n', [that = shared_from_this(), this](auto const &error, auto const length) {
if (error)
{
for (auto &listener : m_listeners)