Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:38:23

0001 //
0002 // Copyright (c) 2023-2025 Ivica Siladic, Bruno Iljazovic, Korina Simicevic
0003 //
0004 // Distributed under the Boost Software License, Version 1.0.
0005 // (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #ifndef BOOST_MQTT5_SSL_HPP
0009 #define BOOST_MQTT5_SSL_HPP
0010 
0011 #include <boost/mqtt5/detail/async_traits.hpp>
0012 #include <boost/mqtt5/detail/shutdown.hpp>
0013 
0014 #include <boost/mqtt5/types.hpp>
0015 
0016 #include <boost/asio/ssl.hpp>
0017 
0018 namespace boost::mqtt5 {
0019 
0020 namespace detail {
0021 
0022 // in namespace boost::mqtt5::detail to enable ADL
0023 template <typename Stream, typename ShutdownHandler>
0024 void async_shutdown(
0025     boost::asio::ssl::stream<Stream>& stream, ShutdownHandler&& handler
0026 ) {
0027     stream.async_shutdown(std::move(handler));
0028 }
0029 
0030 } // end namespace detail
0031 
0032 } // end namespace boost::mqtt5
0033 
0034 #endif // !BOOST_MQTT5_SSL_HPP