|
xrpld
|
#include <TrustedPublisherServer.h>


Classes | |
| struct | BlobInfo |
| struct | Validator |
| struct | Lambda |
Public Member Functions | |
| TrustedPublisherServer (boost::asio::io_context &ioc, std::vector< Validator > const &validators, NetClock::time_point validUntil, std::vector< std::pair< NetClock::time_point, NetClock::time_point > > const &futures, bool useSSL=false, int version=1, bool immediateStart=true, int sequence=1) | |
| void | start () |
| void | stop () |
| ~TrustedPublisherServer () | |
| endpoint_type | localEndpoint () const |
| PublicKey const & | publisherPublic () const |
| T | shared_from_this (T... args) |
| T | weak_from_this (T... args) |
Static Public Member Functions | |
| static std::string | makeManifestString (PublicKey const &pk, SecretKey const &sk, PublicKey const &spk, SecretKey const &ssk, int seq) |
| static Validator | randomValidator () |
| static std::string const & | cert () |
| static std::string const & | key () |
| static std::string const & | caCert () |
| static std::string const & | dh () |
Private Types | |
| using | endpoint_type = boost::asio::ip::tcp::endpoint |
| using | address_type = boost::asio::ip::address |
| using | socket_type = boost::asio::ip::tcp::socket |
| using | req_type = boost::beast::http::request<boost::beast::http::string_body> |
| using | resp_type = boost::beast::http::response<boost::beast::http::string_body> |
| using | error_code = boost::system::error_code |
Private Member Functions | |
| void | loadServerCertificate () |
| void | onAccept (error_code ec) |
| void | doPeer (int id, socket_type &&s, bool ssl) |
Private Attributes | |
| socket_type | sock_ |
| endpoint_type | ep_ |
| boost::asio::ip::tcp::acceptor | acceptor_ |
| std::function< std::string(int)> | getList_ |
| std::function< std::string(int)> | getList2_ |
| bool | useSSL_ |
| boost::asio::ssl::context | sslCtx_ {boost::asio::ssl::context::tlsv12} |
| SecretKey | publisherSecret_ |
| PublicKey | publisherPublic_ |
Definition at line 46 of file TrustedPublisherServer.h.
|
private |
Definition at line 48 of file TrustedPublisherServer.h.
|
private |
Definition at line 49 of file TrustedPublisherServer.h.
|
private |
Definition at line 50 of file TrustedPublisherServer.h.
|
private |
Definition at line 52 of file TrustedPublisherServer.h.
|
private |
Definition at line 53 of file TrustedPublisherServer.h.
|
private |
Definition at line 54 of file TrustedPublisherServer.h.
| xrpl::test::TrustedPublisherServer::TrustedPublisherServer | ( | boost::asio::io_context & | ioc, |
| std::vector< Validator > const & | validators, | ||
| NetClock::time_point | validUntil, | ||
| std::vector< std::pair< NetClock::time_point, NetClock::time_point > > const & | futures, | ||
| bool | useSSL = false, | ||
| int | version = 1, | ||
| bool | immediateStart = true, | ||
| int | sequence = 1 ) |
Definition at line 158 of file TrustedPublisherServer.h.
| xrpl::test::TrustedPublisherServer::~TrustedPublisherServer | ( | ) |
Definition at line 278 of file TrustedPublisherServer.h.
|
private |
Definition at line 76 of file TrustedPublisherServer.h.
|
static |
Definition at line 115 of file TrustedPublisherServer.h.
|
static |
Definition at line 140 of file TrustedPublisherServer.h.
| void xrpl::test::TrustedPublisherServer::start | ( | ) |
Definition at line 253 of file TrustedPublisherServer.h.
| void xrpl::test::TrustedPublisherServer::stop | ( | ) |
Definition at line 270 of file TrustedPublisherServer.h.
| endpoint_type xrpl::test::TrustedPublisherServer::localEndpoint | ( | ) | const |
Definition at line 284 of file TrustedPublisherServer.h.
| PublicKey const & xrpl::test::TrustedPublisherServer::publisherPublic | ( | ) | const |
Definition at line 290 of file TrustedPublisherServer.h.
|
static |
Definition at line 358 of file TrustedPublisherServer.h.
|
static |
Definition at line 365 of file TrustedPublisherServer.h.
|
static |
Definition at line 372 of file TrustedPublisherServer.h.
|
static |
Definition at line 379 of file TrustedPublisherServer.h.
|
private |
Definition at line 407 of file TrustedPublisherServer.h.
|
private |
Definition at line 424 of file TrustedPublisherServer.h.
|
private |
Definition at line 56 of file TrustedPublisherServer.h.
|
private |
Definition at line 57 of file TrustedPublisherServer.h.
|
private |
Definition at line 58 of file TrustedPublisherServer.h.
|
private |
Definition at line 61 of file TrustedPublisherServer.h.
|
private |
Definition at line 64 of file TrustedPublisherServer.h.
|
private |
Definition at line 67 of file TrustedPublisherServer.h.
|
private |
Definition at line 68 of file TrustedPublisherServer.h.
|
private |
Definition at line 70 of file TrustedPublisherServer.h.
|
private |
Definition at line 71 of file TrustedPublisherServer.h.