SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::client::ContextBroker Class Reference

#include <swcdb/db/client/service/bkr/ContextBroker.h>

+ Inheritance diagram for SWC::client::ContextBroker:
+ Collaboration diagram for SWC::client::ContextBroker:

Public Types

typedef std::shared_ptr< ContextBrokerPtr
- Public Types inherited from SWC::Comm::AppContext
typedef std::shared_ptr< AppContextPtr

Public Member Functions

 ContextBroker (const Config::Settings &settings)
virtual ~ContextBroker () noexcept
void handle_established (Comm::ConnHandlerPtr) override
void handle_disconnect (Comm::ConnHandlerPtr) noexcept override
void handle (Comm::ConnHandlerPtr conn, const Comm::Event::Ptr &ev) override
- Public Member Functions inherited from SWC::Comm::AppContext
SWC_CAN_INLINE AppContext (Config::Property::Value_enum_g::Ptr a_cfg_encoder) noexcept
 AppContext (AppContext &&)=delete
 AppContext (const AppContext &)=delete
AppContextoperator= (AppContext &&)=delete
AppContextoperator= (const AppContext &)=delete
virtual void init (const std::string &, const EndPoints &)
virtual void stop ()
virtual void net_bytes_sent (const ConnHandlerPtr &, size_t) noexcept
virtual void net_bytes_received (const ConnHandlerPtr &, size_t) noexcept
virtual void net_accepted (const EndPoint &, bool) noexcept

Additional Inherited Members

- Public Attributes inherited from SWC::Comm::AppContext
const Config::Property::Value_enum_g::Ptr cfg_encoder
- Protected Member Functions inherited from SWC::Comm::AppContext
virtual ~AppContext () noexcept

Detailed Description

Definition at line 15 of file ContextBroker.h.

Member Typedef Documentation

◆ Ptr

Definition at line 18 of file ContextBroker.h.

Constructor & Destructor Documentation

◆ ContextBroker()

SWC::client::ContextBroker::ContextBroker ( const Config::Settings settings)

Definition at line 12 of file ContextBroker.cc.

◆ ~ContextBroker()

virtual SWC::client::ContextBroker::~ContextBroker ( )

Definition at line 22 of file ContextBroker.h.

Member Function Documentation

◆ handle()

void SWC::client::ContextBroker::handle ( Comm::ConnHandlerPtr  conn,
const Comm::Event::Ptr ev 

Implements SWC::Comm::AppContext.

Definition at line 18 of file ContextBroker.cc.


◆ handle_disconnect()

void SWC::client::ContextBroker::handle_disconnect ( Comm::ConnHandlerPtr  )

Implements SWC::Comm::AppContext.

Definition at line 26 of file ContextBroker.h.

◆ handle_established()

void SWC::client::ContextBroker::handle_established ( Comm::ConnHandlerPtr  )

Implements SWC::Comm::AppContext.

Definition at line 24 of file ContextBroker.h.

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