|
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::peer_finder::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 std::int32_t constexpr | kUnknownPort = -1 |
|
stronginherited |
| Enumerator | |
|---|---|
| Accept | |
| Connect | |
| Connected | |
| Active | |
| Closing | |
Definition at line 20 of file include/xrpl/peerfinder/Slot.h.
| xrpl::peer_finder::SlotImp::SlotImp | ( | beast::ip::Endpoint const & | localEndpoint, |
| beast::ip::Endpoint | remoteEndpoint, | ||
| bool | fixed, | ||
| clock_type & | clock ) |
Definition at line 14 of file SlotImp.cpp.
| xrpl::peer_finder::SlotImp::SlotImp | ( | beast::ip::Endpoint | remoteEndpoint, |
| bool | fixed, | ||
| clock_type & | clock ) |
Definition at line 33 of file SlotImp.cpp.
|
overridevirtual |
Returns true if this is an inbound connection.
Implements xrpl::peer_finder::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::peer_finder::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::peer_finder::Slot.
|
overridevirtual |
Returns the state of the connection.
Implements xrpl::peer_finder::Slot.
|
overridevirtual |
The remote endpoint of socket.
Implements xrpl::peer_finder::Slot.
|
overridevirtual |
The local endpoint of the socket, when known.
Implements xrpl::peer_finder::Slot.
|
overridevirtual |
The peer's public key, when known.
The public key is established when the handshake is complete.
Implements xrpl::peer_finder::Slot.
| std::string xrpl::peer_finder::SlotImp::prefix | ( | ) | const |
|
overridevirtual |
Implements xrpl::peer_finder::Slot.
| void xrpl::peer_finder::SlotImp::setListeningPort | ( | std::uint16_t | port | ) |
| void xrpl::peer_finder::SlotImp::localEndpoint | ( | beast::ip::Endpoint const & | endpoint | ) |
| void xrpl::peer_finder::SlotImp::remoteEndpoint | ( | beast::ip::Endpoint const & | endpoint | ) |
| void xrpl::peer_finder::SlotImp::publicKey | ( | PublicKey const & | key | ) |
| void xrpl::peer_finder::SlotImp::reserved | ( | bool | reserved | ) |
| void xrpl::peer_finder::SlotImp::state | ( | State | state | ) |
Definition at line 48 of file SlotImp.cpp.
| void xrpl::peer_finder::SlotImp::activate | ( | clock_type::time_point const & | now | ) |
Definition at line 81 of file SlotImp.cpp.
| class xrpl::peer_finder::SlotImp::RecentT xrpl::peer_finder::SlotImp::recent |
|
private |
|
private |
|
private |
|
staticconstexprprivate |
|
private |
| bool xrpl::peer_finder::SlotImp::connectivityCheckInProgress |
| clock_type::time_point xrpl::peer_finder::SlotImp::whenAcceptEndpoints |