SNode.C
Loading...
Searching...
No Matches
iot::mqtt::server::SocketContextFactory Class Referenceabstract

#include <SocketContextFactory.h>

Inheritance diagram for iot::mqtt::server::SocketContextFactory:
Collaboration diagram for iot::mqtt::server::SocketContextFactory:

Public Member Functions

 SocketContextFactory (const std::string &sessionStoreFileName)
 
- Public Member Functions inherited from core::socket::stream::SocketContextFactory
 SocketContextFactory (SocketContextFactory &)=delete
 
 SocketContextFactory (SocketContextFactory &&)=delete
 
SocketContextFactoryoperator= (SocketContextFactory &)=delete
 
SocketContextFactoryoperator= (SocketContextFactory &&)=delete
 

Private Member Functions

virtual core::socket::stream::SocketContextcreate (core::socket::stream::SocketConnection *socketConnection, std::shared_ptr< iot::mqtt::server::broker::Broker > broker)=0
 
core::socket::stream::SocketContextcreate (core::socket::stream::SocketConnection *socketConnection) final
 

Private Attributes

std::shared_ptr< iot::mqtt::server::broker::Brokerbroker
 

Additional Inherited Members

- Protected Member Functions inherited from core::socket::stream::SocketContextFactory
 SocketContextFactory ()=default
 
virtual ~SocketContextFactory ()
 

Detailed Description

Definition at line 65 of file SocketContextFactory.h.

Constructor & Destructor Documentation

◆ SocketContextFactory()

iot::mqtt::server::SocketContextFactory::SocketContextFactory ( const std::string &  sessionStoreFileName)

Definition at line 52 of file SocketContextFactory.cpp.

53 : broker(std::make_shared<iot::mqtt::server::broker::Broker>(SUBSCRIBTION_MAX_QOS, sessionStoreFileName)) {
54 }
#define SUBSCRIBTION_MAX_QOS
Definition Broker.h:66
std::shared_ptr< iot::mqtt::server::broker::Broker > broker

Member Function Documentation

◆ create() [1/2]

core::socket::stream::SocketContext * iot::mqtt::server::SocketContextFactory::create ( core::socket::stream::SocketConnection socketConnection)
finalprivatevirtual

Implements core::socket::stream::SocketContextFactory.

Definition at line 56 of file SocketContextFactory.cpp.

56 {
57 return create(socketConnection, broker);
58 }
virtual core::socket::stream::SocketContext * create(core::socket::stream::SocketConnection *socketConnection, std::shared_ptr< iot::mqtt::server::broker::Broker > broker)=0

References create().

Here is the call graph for this function:

◆ create() [2/2]

virtual core::socket::stream::SocketContext * iot::mqtt::server::SocketContextFactory::create ( core::socket::stream::SocketConnection socketConnection,
std::shared_ptr< iot::mqtt::server::broker::Broker broker 
)
privatepure virtual

Referenced by create().

Here is the caller graph for this function:

Member Data Documentation

◆ broker

std::shared_ptr<iot::mqtt::server::broker::Broker> iot::mqtt::server::SocketContextFactory::broker
private

Definition at line 74 of file SocketContextFactory.h.


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