|
rippled
|
Represents a peer connection in the overlay. More...

Public Types | |
| using | ptr = std::shared_ptr< Peer > |
| using | id_t = std::uint32_t |
| Uniquely identifies a peer. More... | |
Public Member Functions | |
| virtual | ~Peer ()=default |
| virtual void | send (std::shared_ptr< Message > const &m)=0 |
| virtual beast::IP::Endpoint | getRemoteAddress () const =0 |
| virtual void | charge (Resource::Charge const &fee)=0 |
| Adjust this peer's load balance based on the type of load imposed. More... | |
| virtual id_t | id () const =0 |
| virtual bool | cluster () const =0 |
Returns true if this connection is a member of the cluster. More... | |
| virtual bool | isHighLatency () const =0 |
| virtual int | getScore (bool) const =0 |
| virtual PublicKey const & | getNodePublic () const =0 |
| virtual Json::Value | json ()=0 |
| virtual bool | supportsFeature (ProtocolFeature f) const =0 |
| virtual boost::optional< std::size_t > | publisherListSequence (PublicKey const &) const =0 |
| virtual void | setPublisherListSequence (PublicKey const &, std::size_t const)=0 |
| virtual uint256 const & | getClosedLedgerHash () const =0 |
| virtual bool | hasLedger (uint256 const &hash, std::uint32_t seq) const =0 |
| virtual void | ledgerRange (std::uint32_t &minSeq, std::uint32_t &maxSeq) const =0 |
| virtual bool | hasShard (std::uint32_t shardIndex) const =0 |
| virtual bool | hasTxSet (uint256 const &hash) const =0 |
| virtual void | cycleStatus ()=0 |
| virtual bool | hasRange (std::uint32_t uMin, std::uint32_t uMax)=0 |
| virtual bool | compressionEnabled () const =0 |
Represents a peer connection in the overlay.
Definition at line 45 of file ripple/overlay/Peer.h.
| using ripple::Peer::ptr = std::shared_ptr<Peer> |
Definition at line 48 of file ripple/overlay/Peer.h.
| using ripple::Peer::id_t = std::uint32_t |
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 55 of file ripple/overlay/Peer.h.
|
virtualdefault |
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Adjust this peer's load balance based on the type of load imposed.
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::test::PeerSim, ripple::PeerImp, and ripple::test::TestPeer.
|
pure virtual |
Returns true if this connection is a member of the cluster.
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::test::TestPeer, ripple::test::PeerPartial, and ripple::PeerImp.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
|
pure virtual |
Implemented in ripple::PeerImp, ripple::test::TestPeer, and ripple::test::PeerPartial.
1.8.17