Superclass for asio servers.
More...
#include <joedb/asio/Server.h>
|
void | log (std::string_view s) |
|
virtual std::unique_ptr< Session > | new_session (boost::asio::local::stream_protocol::socket &&socket)=0 |
|
Definition at line 18 of file Server.h.
◆ Server()
joedb::asio::Server::Server |
( |
Logger & |
logger, |
|
|
int |
log_level, |
|
|
int |
thread_count, |
|
|
std::string |
endpoint_path |
|
) |
| |
◆ ~Server()
joedb::asio::Server::~Server |
( |
| ) |
|
|
virtual |
◆ cleanup_after_join()
void joedb::asio::Server::cleanup_after_join |
( |
| ) |
|
|
virtual |
◆ get_endpoint_path()
const std::string & joedb::asio::Server::get_endpoint_path |
( |
| ) |
const |
|
inline |
◆ get_log_level()
int joedb::asio::Server::get_log_level |
( |
| ) |
const |
|
inline |
◆ is_joined()
bool joedb::asio::Server::is_joined |
( |
| ) |
const |
|
inline |
◆ join()
void joedb::asio::Server::join |
( |
| ) |
|
◆ log()
void joedb::asio::Server::log |
( |
std::string_view |
s | ) |
|
|
protected |
◆ new_session()
virtual std::unique_ptr< Session > joedb::asio::Server::new_session |
( |
boost::asio::local::stream_protocol::socket && |
socket | ) |
|
|
protectedpure virtual |
◆ stop()
void joedb::asio::Server::stop |
( |
| ) |
|
◆ acceptor
boost::asio::local::stream_protocol::acceptor joedb::asio::Server::acceptor |
|
protected |
◆ endpoint
boost::asio::local::stream_protocol::endpoint joedb::asio::Server::endpoint |
|
protected |
◆ endpoint_path
const std::string joedb::asio::Server::endpoint_path |
|
protected |
◆ interrupt_signals
boost::asio::signal_set joedb::asio::Server::interrupt_signals |
|
protected |
◆ joined
bool joedb::asio::Server::joined |
|
protected |
◆ log_level
const int joedb::asio::Server::log_level |
|
protected |
◆ logger
Logger& joedb::asio::Server::logger |
|
protected |
◆ thread_count
const int joedb::asio::Server::thread_count |
|
protected |
◆ thread_pool
boost::asio::thread_pool joedb::asio::Server::thread_pool |
|
protected |
The documentation for this class was generated from the following files:
- /home/rcoulom/repos/joedb/src/joedb/asio/Server.h
- /home/rcoulom/repos/joedb/src/joedb/asio/Server.cpp