SNode.C
|
#include <Session.h>
Public Member Functions | |
Session ()=default | |
Session (const nlohmann::json &json) | |
virtual | ~Session ()=default |
Session (const Session &)=default | |
Session & | operator= (const Session &)=default |
bool | isCleanSession () const |
virtual nlohmann::json | toJson () const |
void | fromJson (const nlohmann::json &json) |
void | clear () |
Private Attributes | |
std::map< uint16_t, iot::mqtt::packets::Publish > | publishMap |
std::set< uint16_t > | pubrelPacketIdentifierSet |
std::set< uint16_t > | publishPacketIdentifierSet |
Friends | |
class | iot::mqtt::Mqtt |
|
default |
|
explicit |
Definition at line 55 of file Session.cpp.
References fromJson().
|
virtualdefault |
|
default |
void iot::mqtt::Session::clear | ( | ) |
Definition at line 111 of file Session.cpp.
References publishMap, publishPacketIdentifierSet, and pubrelPacketIdentifierSet.
Referenced by iot::mqtt::client::Mqtt::Mqtt().
void iot::mqtt::Session::fromJson | ( | const nlohmann::json & | json | ) |
Definition at line 89 of file Session.cpp.
References iot::mqtt::packets::Publish::Publish(), publishMap, publishPacketIdentifierSet, and pubrelPacketIdentifierSet.
Referenced by iot::mqtt::server::broker::Session::fromJson(), iot::mqtt::client::Mqtt::Mqtt(), and Session().
bool iot::mqtt::Session::isCleanSession | ( | ) | const |
|
virtual |
Reimplemented in iot::mqtt::server::broker::Session.
Definition at line 59 of file Session.cpp.
References iot::mqtt::packets::Publish::getDup(), iot::mqtt::packets::Publish::getMessage(), iot::mqtt::packets::Publish::getQoS(), iot::mqtt::packets::Publish::getRetain(), iot::mqtt::packets::Publish::getTopic(), publishMap, publishPacketIdentifierSet, and pubrelPacketIdentifierSet.
Referenced by iot::mqtt::server::broker::Session::toJson(), and iot::mqtt::client::Mqtt::~Mqtt().
|
friend |
|
private |
Definition at line 81 of file Session.h.
Referenced by iot::mqtt::Mqtt::_onPubcomp(), iot::mqtt::Mqtt::_onPubrec(), clear(), fromJson(), iot::mqtt::Mqtt::initSession(), iot::mqtt::Mqtt::sendPublish(), and toJson().
|
private |
Definition at line 85 of file Session.h.
Referenced by iot::mqtt::Mqtt::_onPublish(), iot::mqtt::Mqtt::_onPubrel(), clear(), fromJson(), and toJson().
|
private |
Definition at line 82 of file Session.h.
Referenced by iot::mqtt::Mqtt::_onPubcomp(), iot::mqtt::Mqtt::_onPubrec(), clear(), fromJson(), iot::mqtt::Mqtt::initSession(), and toJson().