CppWAMP
C++11 client library for the WAMP protocol
|
Go to the documentation of this file.
7 #ifndef CPPWAMP_ASIODEFS_HPP
8 #define CPPWAMP_ASIODEFS_HPP
16 #include <type_traits>
17 #include <boost/asio/any_io_executor.hpp>
18 #include <boost/asio/io_context.hpp>
19 #include <boost/asio/strand.hpp>
20 #include <boost/system/error_code.hpp>
41 using IoStrand = boost::asio::strand<AnyIoExecutor>;
49 static constexpr
bool isExecutionContext()
51 return std::is_base_of<boost::asio::execution_context, T>::value;
56 #endif // CPPWAMP_ASIODEFS_HPP
boost::asio::any_io_executor AnyIoExecutor
Polymorphic executor for all I/O objects.
Definition: asiodefs.hpp:27
AsioContext AsioService
Alias of AsioContext kept for backward compatibility.
Definition: asiodefs.hpp:38
boost::asio::strand< AnyIoExecutor > IoStrand
Serializes I/O operations.
Definition: asiodefs.hpp:41
AnyIoExecutor AnyExecutor
Alias of AnyIoExecutor kept for backward compatibility.
Definition: asiodefs.hpp:31
Definition: anyhandler.hpp:36
boost::system::error_code AsioErrorCode
Type used by Boost.Asio for reporting errors.
Definition: asiodefs.hpp:44
boost::asio::io_context AsioContext
Queues and runs I/O completion handlers.
Definition: asiodefs.hpp:34