#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 |
| virtual nlohmann::json | toJson () const |
| void | fromJson (const nlohmann::json &json) |
| void | clear () |
Private Attributes | |
| std::map< uint16_t, iot::mqtt::packets::Publish > | outgoingPublishMap |
| std::set< uint16_t > | pubrelPacketIdentifierSet |
| std::map< uint16_t, iot::mqtt::packets::Publish > | incomingPublishMap |
| std::set< uint16_t > | pubcompPacketIdentifierSet |
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 146 of file Session.cpp.
References incomingPublishMap, outgoingPublishMap, pubcompPacketIdentifierSet, and pubrelPacketIdentifierSet.
Referenced by iot::mqtt::client::Mqtt::Mqtt().
| void iot::mqtt::Session::fromJson | ( | const nlohmann::json & | json | ) |
Definition at line 108 of file Session.cpp.
References incomingPublishMap, outgoingPublishMap, pubcompPacketIdentifierSet, iot::mqtt::packets::Publish::Publish(), and pubrelPacketIdentifierSet.
Referenced by iot::mqtt::server::broker::Session::fromJson(), iot::mqtt::client::Mqtt::Mqtt(), and Session().
|
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(), incomingPublishMap, outgoingPublishMap, pubcompPacketIdentifierSet, and pubrelPacketIdentifierSet.
Referenced by iot::mqtt::server::broker::Session::toJson(), and iot::mqtt::client::Mqtt::~Mqtt().
|
friend |
|
private |
Definition at line 83 of file Session.h.
Referenced by iot::mqtt::Mqtt::_onPublish(), iot::mqtt::Mqtt::_onPubrel(), clear(), fromJson(), and toJson().
|
private |
Definition at line 79 of file Session.h.
Referenced by iot::mqtt::Mqtt::_onPuback(), iot::mqtt::Mqtt::_onPubcomp(), iot::mqtt::Mqtt::_onPubrec(), clear(), fromJson(), iot::mqtt::Mqtt::getPacketIdentifier(), iot::mqtt::Mqtt::initSession(), iot::mqtt::Mqtt::sendPublish(), and toJson().
|
private |
Definition at line 84 of file Session.h.
Referenced by iot::mqtt::Mqtt::_onPublish(), iot::mqtt::Mqtt::_onPubrel(), clear(), fromJson(), and toJson().
|
private |
Definition at line 80 of file Session.h.
Referenced by iot::mqtt::Mqtt::_onPubcomp(), iot::mqtt::Mqtt::_onPubrec(), clear(), fromJson(), iot::mqtt::Mqtt::getPacketIdentifier(), iot::mqtt::Mqtt::initSession(), and toJson().