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::ContextRanger Class Reference

#include <swcdb/db/client/service/rgr/ContextRanger.h>

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

Public Types

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

Public Member Functions

 ContextRanger (const Config::Settings &settings)
 
virtual ~ContextRanger () 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 ContextRanger.h.

Member Typedef Documentation

◆ Ptr

Definition at line 18 of file ContextRanger.h.

Constructor & Destructor Documentation

◆ ContextRanger()

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

Definition at line 12 of file ContextRanger.cc.

◆ ~ContextRanger()

virtual SWC::client::ContextRanger::~ContextRanger ( )
inlinevirtualnoexcept

Definition at line 22 of file ContextRanger.h.

Member Function Documentation

◆ handle()

void SWC::client::ContextRanger::handle ( Comm::ConnHandlerPtr  conn,
const Comm::Event::Ptr ev 
)
overridevirtual

Implements SWC::Comm::AppContext.

Definition at line 18 of file ContextRanger.cc.

References SWC::LOG_WARN, SWC_LOG_OSTREAM, and SWC_LOG_OUT.

◆ handle_disconnect()

void SWC::client::ContextRanger::handle_disconnect ( Comm::ConnHandlerPtr  )
inlineoverridevirtualnoexcept

Implements SWC::Comm::AppContext.

Definition at line 26 of file ContextRanger.h.

◆ handle_established()

void SWC::client::ContextRanger::handle_established ( Comm::ConnHandlerPtr  )
inlineoverridevirtual

Implements SWC::Comm::AppContext.

Definition at line 24 of file ContextRanger.h.


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