session_present.hpp 452 B

1234567891011121314151617181920
  1. // Copyright Takatoshi Kondo 2015
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #if !defined(MQTT_SESSION_PRESENT_HPP)
  7. #define MQTT_SESSION_PRESENT_HPP
  8. #include <mqtt/namespace.hpp>
  9. namespace MQTT_NS {
  10. constexpr bool is_session_present(char v) {
  11. return v & 0b00000001;
  12. }
  13. } // namespace MQTT_NS
  14. #endif // MQTT_SESSION_PRESENT_HPP