mqtt_cpp
include
mqtt
packet_id_type.hpp
Go to the documentation of this file.
1
// Copyright Takatoshi Kondo 2019
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(MQTT_PACKET_ID_TYPE_HPP)
8
#define MQTT_PACKET_ID_TYPE_HPP
9
10
#include <
mqtt/two_or_four_byte_util.hpp
>
11
12
namespace
MQTT_NS
{
13
14
template
<std::
size_t
PacketIdBytes>
15
using
packet_id_type
=
two_or_four_byte_type<PacketIdBytes>
;
16
17
template
<std::
size_t
PacketIdBytes>
18
using
make_packet_id
=
make_two_or_four_byte<PacketIdBytes>
;
19
20
template
<std::
size_t
PacketIdBytes>
21
using
add_packet_id_to_buf
=
add_two_or_four_byte_to_buf<PacketIdBytes>
;
22
23
}
// namespace MQTT_NS
24
25
#endif
// MQTT_PACKET_ID_TYPE_HPP
MQTT_NS
Definition:
any.hpp:27
MQTT_NS::add_two_or_four_byte_to_buf
Definition:
two_or_four_byte_util.hpp:52
MQTT_NS::make_two_or_four_byte
Definition:
two_or_four_byte_util.hpp:33
MQTT_NS::two_or_four_byte_type< PacketIdBytes >
two_or_four_byte_util.hpp
Generated by
1.9.1