7#if !defined(ASYNC_MQTT_PREDEFINED_UNDERLYING_LAYER_HPP)
8#define ASYNC_MQTT_PREDEFINED_UNDERLYING_LAYER_HPP
10#include <boost/asio/ip/tcp.hpp>
11#include <boost/beast/websocket/stream.hpp>
13#include <async_mqtt/tls.hpp>
19namespace as = boost::asio;
20namespace bs = boost::beast;
27using mqtt = as::basic_stream_socket<as::ip::tcp, as::any_io_executor>;
29#if defined(ASYNC_MQTT_USE_WS)
33using mqtt_beast_workaround = as::basic_stream_socket<as::ip::tcp, as::io_context::executor_type>;
40using ws = bs::websocket::stream<detail::mqtt_beast_workaround>;
47#if defined(ASYNC_MQTT_USE_TLS)
58#if defined(ASYNC_MQTT_USE_WS)
62using mqtts_beast_workaround = tls::stream<mqtt_beast_workaround>;
69using wss = bs::websocket::stream<detail::mqtts_beast_workaround>;
bs::websocket::stream< detail::mqtts_beast_workaround > wss
Definition predefined_underlying_layer.hpp:69
bs::websocket::stream< detail::mqtt_beast_workaround > ws
Definition predefined_underlying_layer.hpp:40
tls::stream< mqtt > mqtts
Definition predefined_underlying_layer.hpp:56
as::basic_stream_socket< as::ip::tcp, as::any_io_executor > mqtt
Definition predefined_underlying_layer.hpp:27