SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
ContextBroker.h
Go to the documentation of this file.
1 /*
2  * SWC-DB© Copyright since 2019 Alex Kashirin <kashirin.alex@gmail.com>
3  * License details at <https://github.com/kashirin-alex/swc-db/#license>
4  */
5 
6 #ifndef swcdb_db_client_bkr_ContextBroker_h
7 #define swcdb_db_client_bkr_ContextBroker_h
8 
11 
12 namespace SWC { namespace client {
13 
14 
16  public:
17 
18  typedef std::shared_ptr<ContextBroker> Ptr;
19 
20  ContextBroker(const Config::Settings& settings);
21 
22  virtual ~ContextBroker() noexcept { }
23 
25 
26  void handle_disconnect(Comm::ConnHandlerPtr) noexcept override { }
27 
28  void handle(Comm::ConnHandlerPtr conn, const Comm::Event::Ptr& ev) override;
29 
30 };
31 
32 
33 }}
34 
35 
36 
37 #ifdef SWC_IMPL_SOURCE
39 #endif
40 
41 #endif // swcdb_db_client_bkr_ContextBroker_h
ConnHandler.h
Settings.h
SWC::client::ContextBroker::Ptr
std::shared_ptr< ContextBroker > Ptr
Definition: ContextBroker.h:18
SWC::client::ContextBroker::handle
void handle(Comm::ConnHandlerPtr conn, const Comm::Event::Ptr &ev) override
Definition: ContextBroker.cc:18
SWC::client::ContextBroker::ContextBroker
ContextBroker(const Config::Settings &settings)
Definition: ContextBroker.cc:12
SWC::client::ContextBroker::handle_established
void handle_established(Comm::ConnHandlerPtr) override
Definition: ContextBroker.h:24
SWC
The SWC-DB C++ namespace 'SWC'.
Definition: main.cc:12
SWC::Comm::AppContext
Definition: AppContext.h:21
SWC::Config::Settings
Definition: Settings.h:25
ContextBroker.cc
SWC::client::ContextBroker::~ContextBroker
virtual ~ContextBroker() noexcept
Definition: ContextBroker.h:22
SWC::Comm::ConnHandlerPtr
std::shared_ptr< ConnHandler > ConnHandlerPtr
Definition: AppContext.h:17
SWC::client::ContextBroker
Definition: ContextBroker.h:15
SWC::Comm::Event::Ptr
std::shared_ptr< Event > Ptr
Definition: Event.h:33
SWC::client::ContextBroker::handle_disconnect
void handle_disconnect(Comm::ConnHandlerPtr) noexcept override
Definition: ContextBroker.h:26