#include <swcdb/core/comm/SerializedServer.h>
Definition at line 59 of file SerializedServer.h.
◆ Ptr
◆ SerializedServer() [1/3]
SWC_SHOULD_NOT_INLINE SWC::Comm::server::SerializedServer::SerializedServer |
( |
const Config::Settings & |
settings, |
|
|
std::string && |
name, |
|
|
bool |
concurrency_relative, |
|
|
uint32_t |
reactors, |
|
|
uint32_t |
workers, |
|
|
uint16_t |
port, |
|
|
AppContext::Ptr |
app_ctx |
|
) |
| |
Definition at line 141 of file SerializedServer.cc.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::back(), SWC::Error::CONFIG_BAD_VALUE, SWC::Core::Vector< T, SizeT, GROW_SZ >::emplace_back(), SWC::Core::Vector< T, SizeT, GROW_SZ >::empty(), SWC::Comm::Resolver::get_endpoints(), SWC::Comm::Resolver::get_networks(), SWC::Config::Properties::get_str(), SWC::Config::Properties::get_strs(), SWC::Config::Properties::has(), SWC::LOG_INFO, m_acceptors, m_appname, m_io_contexts, m_ssl_cfg, SWC::Comm::IoContext::make(), SWC::Comm::ConfigSSL::need_ssl(), SWC::Core::Vector< T, SizeT, GROW_SZ >::push_back(), SWC::Core::Vector< T, SizeT, GROW_SZ >::size(), SWC::Comm::Resolver::sort(), SWC_EXPECT, SWC_LOG_OSTREAM, SWC_LOG_OUT, SWC_LOGF, SWC_THROW, SWC_THROWF, and SWC::Core::to_string().
◆ SerializedServer() [2/3]
◆ SerializedServer() [3/3]
SWC::Comm::server::SerializedServer::SerializedServer |
( |
const SerializedServer & |
| ) |
|
|
delete |
◆ ~SerializedServer()
SWC::Comm::server::SerializedServer::~SerializedServer |
( |
| ) |
|
|
noexcept |
◆ connection_add()
void SWC::Comm::server::SerializedServer::connection_add |
( |
const ConnHandlerPtr & |
conn | ) |
|
◆ connection_del()
void SWC::Comm::server::SerializedServer::connection_del |
( |
const ConnHandlerPtr & |
conn | ) |
|
Definition at line 296 of file SerializedServer.cc.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), SWC::Core::Vector< T, SizeT, GROW_SZ >::erase(), m_conns, and m_mutex.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ run()
SWC_SHOULD_NOT_INLINE void SWC::Comm::server::SerializedServer::run |
( |
| ) |
|
◆ shutdown()
void SWC::Comm::server::SerializedServer::shutdown |
( |
| ) |
|
Definition at line 269 of file SerializedServer.cc.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), SWC::Core::Vector< T, SizeT, GROW_SZ >::erase(), SWC::LOG_INFO, m_appname, m_conns, m_mutex, m_run, SWC::Core::AtomicBase< T, OrderT >::store(), and SWC_LOGF.
◆ stop_accepting()
Definition at line 256 of file SerializedServer.cc.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::back(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), SWC::Core::Vector< T, SizeT, GROW_SZ >::erase(), SWC::LOG_INFO, m_acceptors, m_appname, m_io_contexts, and SWC_LOGF.
◆ m_acceptors
◆ m_appname
const std::string SWC::Comm::server::SerializedServer::m_appname |
|
private |
◆ m_conns
◆ m_io_contexts
◆ m_mutex
◆ m_run
◆ m_ssl_cfg
ConfigSSL* SWC::Comm::server::SerializedServer::m_ssl_cfg |
|
private |
The documentation for this class was generated from the following files: