async_mqtt 5.0.0
Loading...
Searching...
No Matches
session_present.hpp
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
7#if !defined(ASYNC_MQTT_PACKET_SESSION_PRESENT_HPP)
8#define ASYNC_MQTT_PACKET_SESSION_PRESENT_HPP
9
10
11namespace async_mqtt {
12
13constexpr bool is_session_present(char v) {
14 return v & 0b00000001;
15}
16
17} // namespace async_mqtt
18
19#endif // ASYNC_MQTT_PACKET_SESSION_PRESENT_HPP