| 
    rippled
    
   | 
 
#include <ServerImpl.h>


Public Member Functions | |
| ServerImpl (Handler &handler, boost::asio::io_context &io_context, beast::Journal journal) | |
| ~ServerImpl () | |
| beast::Journal | journal () override | 
| Returns the Journal associated with the server.   | |
| Endpoints | ports (std::vector< Port > const &ports) override | 
| Set the listening port settings.   | |
| void | close () override | 
| Close the server.   | |
| io_list & | ios () | 
| boost::asio::io_context & | get_io_context () | 
| 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_ | 
| beast::Journal const | j_ | 
| boost::asio::io_context & | io_context_ | 
| boost::asio::strand< boost::asio::io_context::executor_type > | strand_ | 
| std::optional< boost::asio::executor_work_guard< boost::asio::io_context::executor_type > > | 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 81 of file ServerImpl.h.
      
  | 
  private | 
Definition at line 84 of file ServerImpl.h.
      
  | 
  private | 
| Enumerator | |
|---|---|
| historySize | |
Definition at line 86 of file ServerImpl.h.
| ripple::ServerImpl< Handler >::ServerImpl | ( | Handler & | handler, | 
| boost::asio::io_context & | io_context, | ||
| beast::Journal | journal | ||
| ) | 
Definition at line 145 of file ServerImpl.h.
| ripple::ServerImpl< Handler >::~ServerImpl | ( | ) | 
Definition at line 158 of file ServerImpl.h.
      
  | 
  overridevirtual | 
Returns the Journal associated with the server.
Implements ripple::Server.
Definition at line 113 of file ServerImpl.h.
      
  | 
  overridevirtual | 
Set the listening port settings.
This may only be called once.
Implements ripple::Server.
Definition at line 168 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 197 of file ServerImpl.h.
| io_list & ripple::ServerImpl< Handler >::ios | ( | ) | 
Definition at line 125 of file ServerImpl.h.
| boost::asio::io_context & ripple::ServerImpl< Handler >::get_io_context | ( | ) | 
Definition at line 131 of file ServerImpl.h.
| bool ripple::ServerImpl< Handler >::closed | ( | ) | 
Definition at line 207 of file ServerImpl.h.
      
  | 
  staticprivate | 
      
  | 
  private | 
Definition at line 88 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 94 of file ServerImpl.h.
      
  | 
  private | 
Definition at line 96 of file ServerImpl.h.
      
  | 
  private | 
Definition at line 97 of file ServerImpl.h.
      
  | 
  private | 
Definition at line 98 of file ServerImpl.h.
      
  | 
  private | 
Definition at line 99 of file ServerImpl.h.
      
  | 
  private | 
Definition at line 100 of file ServerImpl.h.
      
  | 
  private | 
Definition at line 102 of file ServerImpl.h.