roar
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Roar::Server::Implementation Struct Reference
Collaboration diagram for Roar::Server::Implementation:

Public Member Functions

 Implementation (boost::asio::any_io_executor &executor, std::optional< std::variant< SslServerContext, boost::asio::ssl::context > > sslContext, std::function< void(Error &&)> onError, std::function< void(boost::system::error_code)> onAcceptAbort, std::unique_ptr< StandardResponseProvider > standardResponseProvider)
 
void acceptOnce (int failCount)
 

Public Attributes

boost::asio::ip::tcp::acceptor acceptor
 
std::optional< std::variant< SslServerContext, boost::asio::ssl::context > > sslContext
 
boost::asio::ip::tcp::endpoint bindEndpoint
 
boost::asio::ip::tcp::endpoint resolvedEndpoint
 
std::shared_mutex acceptorStopGuard
 
std::function< void(boost::system::error_code)> onAcceptAbort
 
std::shared_ptr< const StandardResponseProviderstandardResponseProvider
 
std::shared_ptr< Routerrouter
 
std::function< void(Error &&)> onError
 
Factory sessionFactory
 

Constructor & Destructor Documentation

◆ Implementation()

Roar::Server::Implementation::Implementation ( boost::asio::any_io_executor &  executor,
std::optional< std::variant< SslServerContext, boost::asio::ssl::context > >  sslContext,
std::function< void(Error &&)>  onError,
std::function< void(boost::system::error_code)>  onAcceptAbort,
std::unique_ptr< StandardResponseProvider standardResponseProvider 
)

Member Function Documentation

◆ acceptOnce()

void Roar::Server::Implementation::acceptOnce ( int  failCount)

Member Data Documentation

◆ acceptor

boost::asio::ip::tcp::acceptor Roar::Server::Implementation::acceptor

◆ acceptorStopGuard

std::shared_mutex Roar::Server::Implementation::acceptorStopGuard

◆ bindEndpoint

boost::asio::ip::tcp::endpoint Roar::Server::Implementation::bindEndpoint

◆ onAcceptAbort

std::function<void(boost::system::error_code)> Roar::Server::Implementation::onAcceptAbort

◆ onError

std::function<void(Error&&)> Roar::Server::Implementation::onError

◆ resolvedEndpoint

boost::asio::ip::tcp::endpoint Roar::Server::Implementation::resolvedEndpoint

◆ router

std::shared_ptr<Router> Roar::Server::Implementation::router

◆ sessionFactory

Factory Roar::Server::Implementation::sessionFactory

◆ sslContext

std::optional<std::variant<SslServerContext, boost::asio::ssl::context> > Roar::Server::Implementation::sslContext

◆ standardResponseProvider

std::shared_ptr<const StandardResponseProvider> Roar::Server::Implementation::standardResponseProvider

The documentation for this struct was generated from the following file: