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:

Public Member Functions

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

Detailed Description

Definition at line 53 of file SocketContextFactory.h.

Constructor & Destructor Documentation

◆ SocketContextFactory()

mqtt::mqttintegrator::SocketContextFactory::SocketContextFactory ( )
explicit

Definition at line 59 of file SocketContextFactory.cpp.

59 {
60 }

Member Function Documentation

◆ create()

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

Definition at line 62 of file SocketContextFactory.cpp.

62 {
63 mqtt::lib::ConfigMqttIntegrator* config = utils::Config::configRoot.getSubCommand<mqtt::lib::ConfigMqttIntegrator>();
64
65 return new iot::mqtt::SocketContext(
66 socketConnection,
67 new mqtt::mqttintegrator::lib::Mqtt(socketConnection->getConnectionName(), config->getMqttMapper(), config->getSessionStore()));
68 }
const std::shared_ptr< MqttMapper > getMqttMapper() const
std::string getSessionStore() 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: