rippled
|
Classes | |
struct | BlobInfo |
struct | lambda |
struct | Validator |
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 | local_endpoint () 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 & | ca_cert () |
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 | load_server_certificate () |
void | on_accept (error_code ec) |
void | do_peer (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 44 of file TrustedPublisherServer.h.
|
private |
Definition at line 47 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 52 of file TrustedPublisherServer.h.
|
private |
Definition at line 54 of file TrustedPublisherServer.h.
|
private |
Definition at line 55 of file TrustedPublisherServer.h.
ripple::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 170 of file TrustedPublisherServer.h.
ripple::test::TrustedPublisherServer::~TrustedPublisherServer | ( | ) |
Definition at line 306 of file TrustedPublisherServer.h.
|
private |
Definition at line 77 of file TrustedPublisherServer.h.
|
static |
Definition at line 120 of file TrustedPublisherServer.h.
|
static |
Definition at line 148 of file TrustedPublisherServer.h.
void ripple::test::TrustedPublisherServer::start | ( | ) |
Definition at line 278 of file TrustedPublisherServer.h.
void ripple::test::TrustedPublisherServer::stop | ( | ) |
Definition at line 298 of file TrustedPublisherServer.h.
endpoint_type ripple::test::TrustedPublisherServer::local_endpoint | ( | ) | const |
Definition at line 312 of file TrustedPublisherServer.h.
PublicKey const& ripple::test::TrustedPublisherServer::publisherPublic | ( | ) | const |
Definition at line 318 of file TrustedPublisherServer.h.
|
static |
Definition at line 386 of file TrustedPublisherServer.h.
|
static |
Definition at line 393 of file TrustedPublisherServer.h.
|
static |
Definition at line 400 of file TrustedPublisherServer.h.
|
static |
Definition at line 407 of file TrustedPublisherServer.h.
|
private |
Definition at line 443 of file TrustedPublisherServer.h.
|
private |
Definition at line 462 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 59 of file TrustedPublisherServer.h.
|
private |
Definition at line 62 of file TrustedPublisherServer.h.
|
private |
Definition at line 65 of file TrustedPublisherServer.h.
|
private |
Definition at line 68 of file TrustedPublisherServer.h.
|
private |
Definition at line 69 of file TrustedPublisherServer.h.
|
private |
Definition at line 71 of file TrustedPublisherServer.h.
|
private |
Definition at line 72 of file TrustedPublisherServer.h.