MQTTSuite
Loading...
Searching...
No Matches
mqtt::mqttintegrator::SocketContextFactory Class Reference

#include <SocketContextFactory.h>

Inheritance diagram for mqtt::mqttintegrator::SocketContextFactory:
Collaboration diagram for mqtt::mqttintegrator::SocketContextFactory:

Private Member Functions

core::socket::stream::SocketContext * create (core::socket::stream::SocketConnection *socketConnection) final

Detailed Description

Definition at line 53 of file SocketContextFactory.h.

Member Function Documentation

◆ create()

core::socket::stream::SocketContext * mqtt::mqttintegrator::SocketContextFactory::create ( core::socket::stream::SocketConnection * socketConnection)
finalprivate

Definition at line 59 of file SocketContextFactory.cpp.

59 {
60 mqtt::lib::ConfigMqttIntegrator* config = utils::Config::configRoot.getSubCommand<mqtt::lib::ConfigMqttIntegrator>();
61
62 return new iot::mqtt::SocketContext(
63 socketConnection,
64 new mqtt::mqttintegrator::lib::Mqtt(socketConnection->getConnectionName(), config->getMqttMapper(), config->getSessionStore()));
65 }
const std::shared_ptr< MqttMapper > getMqttMapper() const

References mqtt::lib::ConfigApplication::getMqttMapper(), and mqtt::lib::ConfigApplication::getSessionStore().

Here is the call graph for this function:

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