4#if !defined(WIN32_LEAN_AND_MEAN)
5#define WIN32_LEAN_AND_MEAN
24#include <boost/asio/executor_work_guard.hpp>
25#include <boost/asio/io_context.hpp>
26#include <boost/asio/strand.hpp>
33 =
decltype(boost::asio::make_strand(std::declval<boost::asio::io_context&>()));
36 boost::asio::io_context context;
40 auto wg = boost::asio::make_work_guard(context);
41#if defined(__cpp_exceptions)
46 catch(std::exception& e)
48 ossia::logger().error(
"Error while processing network events: {}", e.what());
52 ossia::logger().error(
"Error while processing network events.");
60using network_context_ptr = std::shared_ptr<network_context>;
spdlog::logger & logger() noexcept
Where the errors will be logged. Default is stderr.
Definition context.cpp:118