rippled
|
Public Member Functions | |
Validator () | |
Validator (Validator const &)=default | |
Validator (Validator &&)=default | |
Validator & | operator= (Validator const &)=default |
Validator & | operator= (Validator &&)=default |
~Validator () | |
void | clear () |
PublicKey const & | key () |
operator PublicKey () const | |
void | addPeer (PeerSPtr peer) |
void | deletePeer (Peer::id_t id) |
void | for_links (std::vector< Peer::id_t > peers, LinkIterCB f) |
void | for_links (LinkIterCB f, bool simulateSlow=false) |
void | send (std::vector< Peer::id_t > peers, SquelchCB f) |
Send to specific peers. More... | |
void | send (SquelchCB f) |
Send to all peers. More... | |
MessageSPtr | message () |
std::uint16_t | id () |
void | linkUp (Peer::id_t id) |
void | linkDown (Peer::id_t id) |
Static Public Member Functions | |
static void | resetId () |
Private Types | |
using | Links = std::unordered_map< Peer::id_t, LinkSPtr > |
Private Attributes | |
Links | links_ |
PublicKey | pkey_ {} |
MessageSPtr | message_ = nullptr |
std::uint16_t | id_ = 0 |
Static Private Attributes | |
static std::uint16_t | sid_ = 0 |
Simulate Validator.
Definition at line 310 of file reduce_relay_test.cpp.
|
private |
Definition at line 312 of file reduce_relay_test.cpp.
ripple::test::Validator::Validator | ( | ) |
Definition at line 315 of file reduce_relay_test.cpp.
|
default |
|
default |
ripple::test::Validator::~Validator | ( | ) |
Definition at line 329 of file reduce_relay_test.cpp.
void ripple::test::Validator::clear | ( | ) |
Definition at line 335 of file reduce_relay_test.cpp.
|
static |
Definition at line 341 of file reduce_relay_test.cpp.
PublicKey const& ripple::test::Validator::key | ( | ) |
Definition at line 347 of file reduce_relay_test.cpp.
ripple::test::Validator::operator PublicKey | ( | ) | const |
Definition at line 352 of file reduce_relay_test.cpp.
void ripple::test::Validator::addPeer | ( | PeerSPtr | peer | ) |
Definition at line 358 of file reduce_relay_test.cpp.
void ripple::test::Validator::deletePeer | ( | Peer::id_t | id | ) |
Definition at line 365 of file reduce_relay_test.cpp.
void ripple::test::Validator::for_links | ( | std::vector< Peer::id_t > | peers, |
LinkIterCB | f | ||
) |
Definition at line 371 of file reduce_relay_test.cpp.
void ripple::test::Validator::for_links | ( | LinkIterCB | f, |
bool | simulateSlow = false |
||
) |
Definition at line 381 of file reduce_relay_test.cpp.
void ripple::test::Validator::send | ( | std::vector< Peer::id_t > | peers, |
SquelchCB | f | ||
) |
Send to specific peers.
Definition at line 400 of file reduce_relay_test.cpp.
void ripple::test::Validator::send | ( | SquelchCB | f | ) |
Send to all peers.
Definition at line 407 of file reduce_relay_test.cpp.
MessageSPtr ripple::test::Validator::message | ( | ) |
Definition at line 413 of file reduce_relay_test.cpp.
std::uint16_t ripple::test::Validator::id | ( | ) |
Definition at line 419 of file reduce_relay_test.cpp.
void ripple::test::Validator::linkUp | ( | Peer::id_t | id | ) |
Definition at line 425 of file reduce_relay_test.cpp.
void ripple::test::Validator::linkDown | ( | Peer::id_t | id | ) |
Definition at line 433 of file reduce_relay_test.cpp.
|
private |
Definition at line 441 of file reduce_relay_test.cpp.
|
private |
Definition at line 442 of file reduce_relay_test.cpp.
|
private |
Definition at line 443 of file reduce_relay_test.cpp.
|
staticprivate |
Definition at line 444 of file reduce_relay_test.cpp.
|
private |
Definition at line 445 of file reduce_relay_test.cpp.