|
xrpld
|
#include <SlotImp.h>


Classes | |
| class | RecentT |
Public Types | |
| using | ptr = std::shared_ptr<SlotImp> |
| enum class | State { Accept , Connect , Connected , Active , Closing } |
Public Member Functions | |
| SlotImp (beast::IP::Endpoint const &localEndpoint, beast::IP::Endpoint remoteEndpoint, bool fixed, clock_type &clock) | |
| SlotImp (beast::IP::Endpoint remoteEndpoint, bool fixed, clock_type &clock) | |
| bool | inbound () const override |
| Returns true if this is an inbound connection. | |
| bool | fixed () const override |
| Returns true if this is a fixed connection. | |
| bool | reserved () const override |
| Returns true if this is a reserved connection. | |
| State | state () const override |
| Returns the state of the connection. | |
| beast::IP::Endpoint const & | remoteEndpoint () const override |
| The remote endpoint of socket. | |
| std::optional< beast::IP::Endpoint > const & | localEndpoint () const override |
| The local endpoint of the socket, when known. | |
| std::optional< PublicKey > const & | publicKey () const override |
| The peer's public key, when known. | |
| std::string | prefix () const |
| std::optional< std::uint16_t > | listeningPort () const override |
| void | setListeningPort (std::uint16_t port) |
| void | localEndpoint (beast::IP::Endpoint const &endpoint) |
| void | remoteEndpoint (beast::IP::Endpoint const &endpoint) |
| void | publicKey (PublicKey const &key) |
| void | reserved (bool reserved) |
| void | state (State state) |
| void | activate (clock_type::time_point const &now) |
| void | expire () |
Public Attributes | |
| class xrpl::PeerFinder::SlotImp::RecentT | recent |
| bool | checked |
| bool | canAccept |
| bool | connectivityCheckInProgress |
| clock_type::time_point | whenAcceptEndpoints |
Private Attributes | |
| bool const | inbound_ |
| bool const | fixed_ |
| bool | reserved_ |
| State | state_ |
| beast::IP::Endpoint | remoteEndpoint_ |
| std::optional< beast::IP::Endpoint > | localEndpoint_ |
| std::optional< PublicKey > | publicKey_ |
| std::atomic< std::int32_t > | listeningPort_ |
Static Private Attributes | |
| static constexpr std::int32_t | kUnknownPort = -1 |
|
stronginherited |
| Enumerator | |
|---|---|
| Accept | |
| Connect | |
| Connected | |
| Active | |
| Closing | |
Definition at line 16 of file peerfinder/Slot.h.
| xrpl::PeerFinder::SlotImp::SlotImp | ( | beast::IP::Endpoint const & | localEndpoint, |
| beast::IP::Endpoint | remoteEndpoint, | ||
| bool | fixed, | ||
| clock_type & | clock ) |
Definition at line 16 of file SlotImp.cpp.
| xrpl::PeerFinder::SlotImp::SlotImp | ( | beast::IP::Endpoint | remoteEndpoint, |
| bool | fixed, | ||
| clock_type & | clock ) |
Definition at line 35 of file SlotImp.cpp.
|
overridevirtual |
Returns true if this is an inbound connection.
Implements xrpl::PeerFinder::Slot.
|
overridevirtual |
Returns true if this is a fixed connection.
A connection is fixed if its remote endpoint is in the list of remote endpoints for fixed connections.
Implements xrpl::PeerFinder::Slot.
|
overridevirtual |
Returns true if this is a reserved connection.
It might be a cluster peer, or a peer with a reservation. This is only known after then handshake completes.
Implements xrpl::PeerFinder::Slot.
|
overridevirtual |
Returns the state of the connection.
Implements xrpl::PeerFinder::Slot.
|
overridevirtual |
The remote endpoint of socket.
Implements xrpl::PeerFinder::Slot.
|
overridevirtual |
The local endpoint of the socket, when known.
Implements xrpl::PeerFinder::Slot.
|
overridevirtual |
The peer's public key, when known.
The public key is established when the handshake is complete.
Implements xrpl::PeerFinder::Slot.
| std::string xrpl::PeerFinder::SlotImp::prefix | ( | ) | const |
|
overridevirtual |
Implements xrpl::PeerFinder::Slot.
| void xrpl::PeerFinder::SlotImp::setListeningPort | ( | std::uint16_t | port | ) |
| void xrpl::PeerFinder::SlotImp::localEndpoint | ( | beast::IP::Endpoint const & | endpoint | ) |
| void xrpl::PeerFinder::SlotImp::remoteEndpoint | ( | beast::IP::Endpoint const & | endpoint | ) |
| void xrpl::PeerFinder::SlotImp::publicKey | ( | PublicKey const & | key | ) |
| void xrpl::PeerFinder::SlotImp::state | ( | State | state | ) |
Definition at line 50 of file SlotImp.cpp.
| void xrpl::PeerFinder::SlotImp::activate | ( | clock_type::time_point const & | now | ) |
Definition at line 83 of file SlotImp.cpp.
| class xrpl::PeerFinder::SlotImp::RecentT xrpl::PeerFinder::SlotImp::recent |
|
private |
|
private |
|
private |
|
staticconstexprprivate |
|
private |
| bool xrpl::PeerFinder::SlotImp::connectivityCheckInProgress |
| clock_type::time_point xrpl::PeerFinder::SlotImp::whenAcceptEndpoints |