SNode.C
|
#include <Session.h>
Public Member Functions | |
Session ()=default | |
Session (iot::mqtt::server::Mqtt *mqtt) | |
void | sendPublish (iot::mqtt::server::broker::Message &message, uint8_t qoS, bool retain) |
void | publishQueued () |
Session * | renew (iot::mqtt::server::Mqtt *mqtt) |
void | retain () |
bool | isActive () const |
bool | isOwnedBy (const iot::mqtt::server::Mqtt *mqtt) const |
nlohmann::json | toJson () const final |
void | fromJson (const nlohmann::json &json) |
![]() | |
Session ()=default | |
Session (const nlohmann::json &json) | |
virtual | ~Session ()=default |
Session (const Session &)=default | |
Session & | operator= (const Session &)=default |
bool | isCleanSession () const |
void | fromJson (const nlohmann::json &json) |
void | clear () |
Private Attributes | |
iot::mqtt::server::Mqtt * | mqtt = nullptr |
std::deque< Message > | messageQueue |
|
default |
|
explicit |
Definition at line 40 of file Session.cpp.
void iot::mqtt::server::broker::Session::fromJson | ( | const nlohmann::json & | json | ) |
Definition at line 109 of file Session.cpp.
bool iot::mqtt::server::broker::Session::isActive | ( | ) | const |
Definition at line 91 of file Session.cpp.
Referenced by sendPublish().
bool iot::mqtt::server::broker::Session::isOwnedBy | ( | const iot::mqtt::server::Mqtt * | mqtt | ) | const |
Definition at line 95 of file Session.cpp.
void iot::mqtt::server::broker::Session::publishQueued | ( | ) |
Definition at line 71 of file Session.cpp.
Session * iot::mqtt::server::broker::Session::renew | ( | iot::mqtt::server::Mqtt * | mqtt | ) |
Definition at line 81 of file Session.cpp.
void iot::mqtt::server::broker::Session::retain | ( | ) |
Definition at line 87 of file Session.cpp.
void iot::mqtt::server::broker::Session::sendPublish | ( | iot::mqtt::server::broker::Message & | message, |
uint8_t | qoS, | ||
bool | retain ) |
Definition at line 44 of file Session.cpp.
References iot::mqtt::server::broker::Message::getOriginRetain(), iot::mqtt::server::broker::Message::getQoS(), iot::mqtt::server::Mqtt::getReflect(), isActive(), and iot::mqtt::server::broker::Message::setQoS().
|
finalvirtual |
Reimplemented from iot::mqtt::Session.
Definition at line 99 of file Session.cpp.
|
private |
|
private |