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::Comm::AppContext Class Referenceabstract

#include <swcdb/core/comm/AppContext.h>

+ Inheritance diagram for SWC::Comm::AppContext:
+ Collaboration diagram for SWC::Comm::AppContext:

Public Types

typedef std::shared_ptr< AppContextPtr
 

Public Member Functions

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 handle_established (ConnHandlerPtr conn)=0
 
virtual void handle_disconnect (ConnHandlerPtr conn) noexcept=0
 
virtual void handle (ConnHandlerPtr conn, const Event::Ptr &ev)=0
 
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
 

Public Attributes

const Config::Property::Value_enum_g::Ptr cfg_encoder
 

Protected Member Functions

virtual ~AppContext () noexcept
 

Detailed Description

Definition at line 21 of file AppContext.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<AppContext> SWC::Comm::AppContext::Ptr

Definition at line 23 of file AppContext.h.

Constructor & Destructor Documentation

◆ AppContext() [1/3]

SWC_CAN_INLINE SWC::Comm::AppContext::AppContext ( Config::Property::Value_enum_g::Ptr  a_cfg_encoder)
inlinenoexcept

Definition at line 28 of file AppContext.h.

◆ AppContext() [2/3]

SWC::Comm::AppContext::AppContext ( AppContext &&  )
delete

◆ AppContext() [3/3]

SWC::Comm::AppContext::AppContext ( const AppContext )
delete

◆ ~AppContext()

virtual SWC::Comm::AppContext::~AppContext ( )
inlineprotectedvirtualnoexcept

Member Function Documentation

◆ handle()

◆ handle_disconnect()

◆ handle_established()

◆ init()

virtual void SWC::Comm::AppContext::init ( const std::string &  ,
const EndPoints  
)
inlinevirtual

◆ net_accepted()

virtual void SWC::Comm::AppContext::net_accepted ( const EndPoint ,
bool   
)
inlinevirtualnoexcept

◆ net_bytes_received()

virtual void SWC::Comm::AppContext::net_bytes_received ( const ConnHandlerPtr ,
size_t   
)
inlinevirtualnoexcept

◆ net_bytes_sent()

virtual void SWC::Comm::AppContext::net_bytes_sent ( const ConnHandlerPtr ,
size_t   
)
inlinevirtualnoexcept

◆ operator=() [1/2]

AppContext& SWC::Comm::AppContext::operator= ( AppContext &&  )
delete

◆ operator=() [2/2]

AppContext& SWC::Comm::AppContext::operator= ( const AppContext )
delete

◆ stop()

void SWC::Comm::AppContext::stop ( )
virtual

Member Data Documentation

◆ cfg_encoder

const Config::Property::Value_enum_g::Ptr SWC::Comm::AppContext::cfg_encoder

Definition at line 25 of file AppContext.h.


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