xrpld
Loading...
Searching...
No Matches
include
xrpl
server
Server.h
1
#pragma once
2
3
#include <xrpl/beast/utility/Journal.h>
4
#include <xrpl/beast/utility/PropertyStream.h>
5
#include <xrpl/server/Port.h>
6
#include <xrpl/server/detail/ServerImpl.h>
7
8
#include <boost/asio/io_context.hpp>
9
10
namespace
xrpl
{
11
13
template
<
class
Handler>
14
std::unique_ptr<Server>
15
makeServer
(Handler& handler, boost::asio::io_context& ioContext,
beast::Journal
journal)
16
{
17
return
std::make_unique<ServerImpl<Handler>
>(handler, ioContext, journal);
18
}
19
20
}
// namespace xrpl
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:38
std::make_unique
T make_unique(T... args)
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:15
Generated by
1.16.1