|
rippled
|

Public Member Functions | |
| Network (Application &app) | |
| void | init () |
| ~Network ()=default | |
| void | reset () |
| Peer::id_t | addPeer () |
| void | deleteLastPeer () |
| void | purgePeers () |
| Validator & | validator (std::uint16_t v) |
| OverlaySim & | overlay () |
| void | enableLink (std::uint16_t validatorId, Peer::id_t peer, bool enable) |
| void | onDisconnectPeer (Peer::id_t peer) |
| void | for_rand (std::uint32_t min, std::uint32_t max, std::function< void(std::uint32_t)> f) |
| void | propagate (LinkIterCB link, std::uint16_t nValidators=MAX_VALIDATORS, std::uint32_t nMessages=MAX_MESSAGES, bool purge=true, bool resetClock=true) |
| bool | isSelected (Peer::id_t id) |
| Is peer in Selected state in any of the slots. | |
| bool | allCounting (Peer::id_t peer) |
| Check if there are peers to unsquelch - peer is in Selected state in any of the slots and there are peers in Squelched state in those slots. | |
Private Attributes | |
| OverlaySim | overlay_ |
| std::vector< Validator > | validators_ |
Definition at line 689 of file reduce_relay_test.cpp.
| ripple::test::Network::Network | ( | Application & | app | ) |
Definition at line 692 of file reduce_relay_test.cpp.
|
default |
| void ripple::test::Network::init | ( | ) |
Definition at line 698 of file reduce_relay_test.cpp.
| void ripple::test::Network::reset | ( | ) |
Definition at line 712 of file reduce_relay_test.cpp.
| Peer::id_t ripple::test::Network::addPeer | ( | ) |
Definition at line 722 of file reduce_relay_test.cpp.
| void ripple::test::Network::deleteLastPeer | ( | ) |
Definition at line 731 of file reduce_relay_test.cpp.
| void ripple::test::Network::purgePeers | ( | ) |
Definition at line 743 of file reduce_relay_test.cpp.
| Validator & ripple::test::Network::validator | ( | std::uint16_t | v | ) |
Definition at line 750 of file reduce_relay_test.cpp.
| OverlaySim & ripple::test::Network::overlay | ( | ) |
Definition at line 757 of file reduce_relay_test.cpp.
| void ripple::test::Network::enableLink | ( | std::uint16_t | validatorId, |
| Peer::id_t | peer, | ||
| bool | enable | ||
| ) |
Definition at line 763 of file reduce_relay_test.cpp.
| void ripple::test::Network::onDisconnectPeer | ( | Peer::id_t | peer | ) |
Definition at line 777 of file reduce_relay_test.cpp.
| void ripple::test::Network::for_rand | ( | std::uint32_t | min, |
| std::uint32_t | max, | ||
| std::function< void(std::uint32_t)> | f | ||
| ) |
Definition at line 797 of file reduce_relay_test.cpp.
| void ripple::test::Network::propagate | ( | LinkIterCB | link, |
| std::uint16_t | nValidators = MAX_VALIDATORS, |
||
| std::uint32_t | nMessages = MAX_MESSAGES, |
||
| bool | purge = true, |
||
| bool | resetClock = true |
||
| ) |
Definition at line 813 of file reduce_relay_test.cpp.
| bool ripple::test::Network::isSelected | ( | Peer::id_t | id | ) |
Is peer in Selected state in any of the slots.
Definition at line 840 of file reduce_relay_test.cpp.
| bool ripple::test::Network::allCounting | ( | Peer::id_t | peer | ) |
Check if there are peers to unsquelch - peer is in Selected state in any of the slots and there are peers in Squelched state in those slots.
Definition at line 855 of file reduce_relay_test.cpp.
|
private |
Definition at line 874 of file reduce_relay_test.cpp.
|
private |
Definition at line 875 of file reduce_relay_test.cpp.