rippled
Loading...
Searching...
No Matches
Server.h
1#ifndef XRPL_SERVER_SERVER_H_INCLUDED
2#define XRPL_SERVER_SERVER_H_INCLUDED
3
4#include <xrpl/beast/utility/Journal.h>
5#include <xrpl/beast/utility/PropertyStream.h>
6#include <xrpl/server/Port.h>
7#include <xrpl/server/detail/ServerImpl.h>
8
9#include <boost/asio/io_context.hpp>
10
11namespace ripple {
12
14template <class Handler>
17 Handler& handler,
18 boost::asio::io_context& io_context,
19 beast::Journal journal)
20{
21 return std::make_unique<ServerImpl<Handler>>(handler, io_context, journal);
22}
23
24} // namespace ripple
25
26#endif
A generic endpoint for log messages.
Definition Journal.h:41
T is_same_v
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::unique_ptr< Server > make_Server(Handler &handler, boost::asio::io_context &io_context, beast::Journal journal)
Create the HTTP server using the specified handler.
Definition Server.h:16