|
rippled
|
Simulate two entities - peer directly connected to the server (via squelch in PeerSim) and PeerImp (via Overlay) More...


Public Types | |
| using | ptr = std::shared_ptr< Peer > |
| using | id_t = std::uint32_t |
| Uniquely identifies a peer. | |
Public Member Functions | |
| PeerPartial () | |
| virtual | ~PeerPartial () |
| virtual void | onMessage (MessageSPtr const &m, SquelchCB f)=0 |
| virtual void | onMessage (protocol::TMSquelch const &squelch)=0 |
| void | send (protocol::TMSquelch const &squelch) |
| void | send (std::shared_ptr< Message > const &m) override |
| beast::IP::Endpoint | getRemoteAddress () const override |
| void | charge (Resource::Charge const &fee, std::string const &context={}) override |
| Adjust this peer's load balance based on the type of load imposed. | |
| bool | cluster () const override |
Returns true if this connection is a member of the cluster. | |
| bool | isHighLatency () const override |
| int | getScore (bool) const override |
| PublicKey const & | getNodePublic () const override |
| Json::Value | json () override |
| bool | supportsFeature (ProtocolFeature f) const override |
| std::optional< std::size_t > | publisherListSequence (PublicKey const &) const override |
| void | setPublisherListSequence (PublicKey const &, std::size_t const) override |
| uint256 const & | getClosedLedgerHash () const override |
| bool | hasLedger (uint256 const &hash, std::uint32_t seq) const override |
| void | ledgerRange (std::uint32_t &minSeq, std::uint32_t &maxSeq) const override |
| bool | hasTxSet (uint256 const &hash) const override |
| void | cycleStatus () override |
| bool | hasRange (std::uint32_t uMin, std::uint32_t uMax) override |
| bool | compressionEnabled () const override |
| bool | txReduceRelayEnabled () const override |
| void | sendTxQueue () override |
| Send aggregated transactions' hashes. | |
| void | addTxQueue (uint256 const &) override |
| Aggregate transaction's hash. | |
| void | removeTxQueue (uint256 const &) override |
| Remove hash from the transactions' hashes queue. | |
| virtual id_t | id () const =0 |
| virtual std::string const & | fingerprint () const =0 |
Public Attributes | |
| PublicKey | nodePublicKey_ |
Simulate two entities - peer directly connected to the server (via squelch in PeerSim) and PeerImp (via Overlay)
Definition at line 46 of file reduce_relay_test.cpp.
|
inherited |
Definition at line 26 of file xrpld/overlay/Peer.h.
|
inherited |
Uniquely identifies a peer.
This can be stored in tables to find the peer later. Callers can discover if the peer is no longer connected and make adjustments as needed.
Definition at line 33 of file xrpld/overlay/Peer.h.
| xrpl::test::PeerPartial::PeerPartial | ( | ) |
Definition at line 49 of file reduce_relay_test.cpp.
|
virtual |
Definition at line 54 of file reduce_relay_test.cpp.
|
pure virtual |
Implemented in xrpl::test::PeerSim.
|
pure virtual |
Implemented in xrpl::test::PeerSim.
| void xrpl::test::PeerPartial::send | ( | protocol::TMSquelch const & | squelch | ) |
Definition at line 62 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 69 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 73 of file reduce_relay_test.cpp.
|
overridevirtual |
Adjust this peer's load balance based on the type of load imposed.
Implements xrpl::Peer.
Definition at line 78 of file reduce_relay_test.cpp.
|
overridevirtual |
Returns true if this connection is a member of the cluster.
Implements xrpl::Peer.
Definition at line 82 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 87 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 92 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 97 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 102 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 107 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 112 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 117 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 121 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 127 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 132 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 136 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 141 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 145 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 150 of file reduce_relay_test.cpp.
|
overridevirtual |
Implements xrpl::Peer.
Definition at line 155 of file reduce_relay_test.cpp.
|
overridevirtual |
Send aggregated transactions' hashes.
Implements xrpl::Peer.
Definition at line 160 of file reduce_relay_test.cpp.
|
overridevirtual |
Aggregate transaction's hash.
Implements xrpl::Peer.
Definition at line 164 of file reduce_relay_test.cpp.
|
overridevirtual |
Remove hash from the transactions' hashes queue.
Implements xrpl::Peer.
Definition at line 168 of file reduce_relay_test.cpp.
|
pure virtualinherited |
Implemented in xrpl::test::TestPeer, xrpl::test::PeerSim, and xrpl::PeerImp.
|
pure virtualinherited |
Implemented in xrpl::test::TestPeer, xrpl::test::PeerSim, and xrpl::PeerImp.
| PublicKey xrpl::test::PeerPartial::nodePublicKey_ |
Definition at line 53 of file reduce_relay_test.cpp.