rippled
|
Public Member Functions | |
ServerImpl (Handler &handler, boost::asio::io_service &io_service, beast::Journal journal) | |
~ServerImpl () | |
beast::Journal | journal () override |
Returns the Journal associated with the server. More... | |
Endpoints | ports (std::vector< Port > const &ports) override |
Set the listening port settings. More... | |
void | close () override |
Close the server. More... | |
io_list & | ios () |
boost::asio::io_service & | get_io_service () |
bool | closed () |
Private Types | |
enum | { historySize = 100 } |
using | clock_type = std::chrono::system_clock |
Static Private Member Functions | |
static int | ceil_log2 (unsigned long long x) |
Private Attributes | |
Handler & | handler_ |
const beast::Journal | j_ |
boost::asio::io_service & | io_service_ |
boost::asio::io_service::strand | strand_ |
std::optional< boost::asio::io_service::work > | work_ |
std::mutex | m_ |
std::vector< Port > | ports_ |
std::vector< std::weak_ptr< Door< Handler > > > | list_ |
int | high_ = 0 |
std::array< std::size_t, 64 > | hist_ |
io_list | ios_ |
Definition at line 76 of file ServerImpl.h.
|
private |
Definition at line 79 of file ServerImpl.h.
|
private |
Enumerator | |
---|---|
historySize |
Definition at line 81 of file ServerImpl.h.
ripple::ServerImpl< Handler >::ServerImpl | ( | Handler & | handler, |
boost::asio::io_service & | io_service, | ||
beast::Journal | journal | ||
) |
Definition at line 138 of file ServerImpl.h.
ripple::ServerImpl< Handler >::~ServerImpl |
Definition at line 151 of file ServerImpl.h.
|
overridevirtual |
Returns the Journal associated with the server.
Implements ripple::Server.
Definition at line 106 of file ServerImpl.h.
|
overridevirtual |
Set the listening port settings.
This may only be called once.
Implements ripple::Server.
Definition at line 161 of file ServerImpl.h.
|
overridevirtual |
Close the server.
The close is performed asynchronously. The handler will be notified when the server has stopped. The server is considered stopped when there are no pending I/O completion handlers and all connections have closed. Thread safety: Safe to call concurrently from any thread.
Implements ripple::Server.
Definition at line 184 of file ServerImpl.h.
io_list& ripple::ServerImpl< Handler >::ios | ( | ) |
Definition at line 118 of file ServerImpl.h.
boost::asio::io_service& ripple::ServerImpl< Handler >::get_io_service | ( | ) |
Definition at line 124 of file ServerImpl.h.
bool ripple::ServerImpl< Handler >::closed |
Definition at line 194 of file ServerImpl.h.
|
staticprivate |
|
private |
Definition at line 83 of file ServerImpl.h.
|
private |
Definition at line 84 of file ServerImpl.h.
|
private |
Definition at line 85 of file ServerImpl.h.
|
private |
Definition at line 86 of file ServerImpl.h.
|
private |
Definition at line 87 of file ServerImpl.h.
|
private |
Definition at line 89 of file ServerImpl.h.
|
private |
Definition at line 90 of file ServerImpl.h.
|
private |
Definition at line 91 of file ServerImpl.h.
|
private |
Definition at line 92 of file ServerImpl.h.
|
private |
Definition at line 93 of file ServerImpl.h.
|
private |
Definition at line 95 of file ServerImpl.h.