SNode.C
Loading...
Searching...
No Matches
iot::mqtt_fast::packets::Suback Class Reference

#include <Suback.h>

Inheritance diagram for iot::mqtt_fast::packets::Suback:
Collaboration diagram for iot::mqtt_fast::packets::Suback:

Public Member Functions

 Suback (uint16_t packetIdentifier, const std::list< uint8_t > &returnCodes)
 
 Suback (iot::mqtt_fast::ControlPacketFactory &controlPacketFactory)
 
uint16_t getPacketIdentifier () const
 
const std::list< uint8_t > & getReturnCodes () const
 
- Public Member Functions inherited from iot::mqtt_fast::ControlPacket
 ControlPacket (uint8_t type, uint8_t reserved=0)
 
 ControlPacket (iot::mqtt_fast::ControlPacketFactory &controlPacketFactory)
 
 ControlPacket (const ControlPacket &)=delete
 
 ControlPacket (ControlPacket &&)=delete
 
ControlPacketoperator= (const ControlPacket &)=delete
 
ControlPacketoperator= (ControlPacket &&)=delete
 
uint8_t getType () const
 
uint8_t getReserved () const
 
uint64_t getRemainingLength () const
 
std::vector< char > getPacket ()
 
bool isError () const
 

Private Attributes

uint16_t packetIdentifier
 
std::list< uint8_t > returnCodes
 

Additional Inherited Members

- Protected Member Functions inherited from iot::mqtt_fast::ControlPacket
std::vector< char > & getValue ()
 
uint8_t getInt8 ()
 
uint16_t getInt16 ()
 
uint32_t getInt32 ()
 
uint64_t getInt64 ()
 
uint32_t getIntV ()
 
std::string getString ()
 
std::string getStringRaw ()
 
std::list< uint8_t > getUint8ListRaw ()
 
void putInt8 (uint8_t value)
 
void putInt16 (uint16_t value)
 
void putInt32 (uint32_t value)
 
void putInt64 (uint64_t value)
 
void putIntV (uint32_t value)
 
void putString (const std::string &value)
 
void putStringRaw (const std::string &value)
 
void putUint8ListRaw (const std::list< uint8_t > &value)
 
bool isError ()
 
- Protected Attributes inherited from iot::mqtt_fast::ControlPacket
bool error = false
 

Detailed Description

Definition at line 62 of file Suback.h.

Constructor & Destructor Documentation

◆ Suback() [1/2]

iot::mqtt_fast::packets::Suback::Suback ( uint16_t  packetIdentifier,
const std::list< uint8_t > &  returnCodes 
)

Definition at line 50 of file Suback.cpp.

54 // V-Header
56
57 // Payload
59 }
void putInt16(uint16_t value)
void putUint8ListRaw(const std::list< uint8_t > &value)
std::list< uint8_t > returnCodes
Definition Suback.h:73
#define MQTT_SUBACK
Definition Suback.h:58

References iot::mqtt_fast::ControlPacket::ControlPacket(), packetIdentifier, iot::mqtt_fast::ControlPacket::putInt16(), iot::mqtt_fast::ControlPacket::putUint8ListRaw(), and returnCodes.

Referenced by iot::mqtt_fast::SocketContext::sendSuback().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Suback() [2/2]

iot::mqtt_fast::packets::Suback::Suback ( iot::mqtt_fast::ControlPacketFactory controlPacketFactory)
explicit

Definition at line 61 of file Suback.cpp.

62 : iot::mqtt_fast::ControlPacket(controlPacketFactory) {
63 // V-Header
65
66 // Payload
68
69 error = isError();
70 }
std::list< uint8_t > getUint8ListRaw()

References iot::mqtt_fast::ControlPacket::ControlPacket(), iot::mqtt_fast::ControlPacket::error, iot::mqtt_fast::ControlPacket::getInt16(), iot::mqtt_fast::ControlPacket::getUint8ListRaw(), iot::mqtt_fast::ControlPacket::isError(), packetIdentifier, and returnCodes.

Referenced by iot::mqtt_fast::SocketContext::onReceivedFromPeer().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ getPacketIdentifier()

uint16_t iot::mqtt_fast::packets::Suback::getPacketIdentifier ( ) const

Definition at line 72 of file Suback.cpp.

72 {
73 return packetIdentifier;
74 }

References packetIdentifier.

◆ getReturnCodes()

const std::list< uint8_t > & iot::mqtt_fast::packets::Suback::getReturnCodes ( ) const

Definition at line 76 of file Suback.cpp.

76 {
77 return returnCodes;
78 }

References returnCodes.

Member Data Documentation

◆ packetIdentifier

uint16_t iot::mqtt_fast::packets::Suback::packetIdentifier
private

Definition at line 72 of file Suback.h.

Referenced by getPacketIdentifier(), Suback(), and Suback().

◆ returnCodes

std::list<uint8_t> iot::mqtt_fast::packets::Suback::returnCodes
private

Definition at line 73 of file Suback.h.

Referenced by getReturnCodes(), Suback(), and Suback().


The documentation for this class was generated from the following files: