Paho C++  1.0
The Paho MQTT C++ Client Library
 All Classes Files Functions Variables Typedefs Friends
message.h File Reference

Declaration of MQTT message class. More...

#include "MQTTAsync.h"
#include "mqtt/buffer_ref.h"
#include "mqtt/exception.h"
#include <memory>

Go to the source code of this file.

Classes

class  mqtt::message
 An MQTT message holds everything required for an MQTT PUBLISH message. More...
 

Typedefs

using mqtt::message_ptr = message::ptr_t
 Smart/shared pointer to a message.
 
using mqtt::const_message_ptr = message::const_ptr_t
 Smart/shared pointer to a const message.
 

Functions

message_ptr mqtt::make_message (string_ref topic, const void *payload, size_t len)
 Constructs a message with the specified array as a payload, and all other values set to defaults. More...
 
message_ptr mqtt::make_message (string_ref topic, const void *payload, size_t len, int qos, bool retained)
 Constructs a message with the specified array as a payload, and all other values set to defaults. More...
 
message_ptr mqtt::make_message (string_ref topic, binary_ref payload)
 Constructs a message with the specified buffer as a payload, and all other values set to defaults. More...
 
message_ptr mqtt::make_message (string_ref topic, binary_ref payload, int qos, bool retained)
 Constructs a message with the specified values. More...
 

Detailed Description

Declaration of MQTT message class.

Date
May 1, 2013
Author
Frank Pagliughi