xrpld
Loading...
Searching...
No Matches
include
xrpl
server
Server.h
1
#pragma once
2
3
#include <xrpl/beast/utility/Journal.h>
4
#include <xrpl/server/detail/ServerImpl.h>
5
6
#include <boost/asio/io_context.hpp>
7
8
#include <
memory
>
9
10
namespace
xrpl
{
11
15
template
<
class
Handler>
16
std::unique_ptr<Server>
17
makeServer
(Handler& handler, boost::asio::io_context& ioContext,
beast::Journal
journal)
18
{
19
return
std::make_unique<ServerImpl<Handler>
>(handler, ioContext, journal);
20
}
21
22
}
// namespace xrpl
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
std::make_unique
T make_unique(T... args)
memory
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::makeServer
std::unique_ptr< Server > makeServer(Handler &handler, boost::asio::io_context &ioContext, beast::Journal journal)
Create the HTTP server using the specified handler.
Definition
Server.h:17
Generated by
1.16.1