mqtt_broker.hpp 638 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2017-2023 zhllxt
  3. *
  4. * author : zhllxt
  5. * email : 37792738@qq.com
  6. *
  7. * Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. */
  10. #ifndef __ASIO2_MQTT_BROKER_HPP__
  11. #define __ASIO2_MQTT_BROKER_HPP__
  12. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  13. #pragma once
  14. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  15. #include <asio2/mqtt/mqtt_server.hpp>
  16. namespace asio2
  17. {
  18. template<class session_t>
  19. using mqtt_broker_t = mqtt_server_t<session_t>;
  20. using mqtt_broker = mqtt_server;
  21. }
  22. #endif // !__ASIO2_MQTT_BROKER_HPP__