rippled
|
Classes | |
class | recent_t |
Public Types | |
using | ptr = std::shared_ptr< SlotImp > |
enum | State { accept, connect, connected, active, closing } |
Public Member Functions | |
SlotImp (beast::IP::Endpoint const &local_endpoint, beast::IP::Endpoint const &remote_endpoint, bool fixed, clock_type &clock) | |
SlotImp (beast::IP::Endpoint const &remote_endpoint, bool fixed, clock_type &clock) | |
bool | inbound () const override |
Returns true if this is an inbound connection. More... | |
bool | fixed () const override |
Returns true if this is a fixed connection. More... | |
bool | reserved () const override |
Returns true if this is a reserved connection. More... | |
State | state () const override |
Returns the state of the connection. More... | |
beast::IP::Endpoint const & | remote_endpoint () const override |
The remote endpoint of socket. More... | |
std::optional< beast::IP::Endpoint > const & | local_endpoint () const override |
The local endpoint of the socket, when known. More... | |
std::optional< PublicKey > const & | public_key () const override |
The peer's public key, when known. More... | |
std::optional< std::uint16_t > | listening_port () const override |
void | set_listening_port (std::uint16_t port) |
void | local_endpoint (beast::IP::Endpoint const &endpoint) |
void | remote_endpoint (beast::IP::Endpoint const &endpoint) |
void | public_key (PublicKey const &key) |
void | reserved (bool reserved_) |
void | state (State state_) |
void | activate (clock_type::time_point const &now) |
void | expire () |
Public Attributes | |
class ripple::PeerFinder::SlotImp::recent_t | recent |
bool | checked |
bool | canAccept |
bool | connectivityCheckInProgress |
clock_type::time_point | whenAcceptEndpoints |
Private Attributes | |
const bool | m_inbound |
const bool | m_fixed |
bool | m_reserved |
State | m_state |
beast::IP::Endpoint | m_remote_endpoint |
std::optional< beast::IP::Endpoint > | m_local_endpoint |
std::optional< PublicKey > | m_public_key |
std::atomic< std::int32_t > | m_listening_port |
Static Private Attributes | |
static constexpr std::int32_t | unknownPort = -1 |
|
inherited |
Enumerator | |
---|---|
accept | |
connect | |
connected | |
active | |
closing |
Definition at line 37 of file peerfinder/Slot.h.
ripple::PeerFinder::SlotImp::SlotImp | ( | beast::IP::Endpoint const & | local_endpoint, |
beast::IP::Endpoint const & | remote_endpoint, | ||
bool | fixed, | ||
clock_type & | clock | ||
) |
Definition at line 27 of file SlotImp.cpp.
ripple::PeerFinder::SlotImp::SlotImp | ( | beast::IP::Endpoint const & | remote_endpoint, |
bool | fixed, | ||
clock_type & | clock | ||
) |
Definition at line 46 of file SlotImp.cpp.
|
overridevirtual |
Returns true
if this is an inbound connection.
Implements ripple::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 ripple::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 ripple::PeerFinder::Slot.
|
overridevirtual |
Returns the state of the connection.
Implements ripple::PeerFinder::Slot.
|
overridevirtual |
The remote endpoint of socket.
Implements ripple::PeerFinder::Slot.
|
overridevirtual |
The local endpoint of the socket, when known.
Implements ripple::PeerFinder::Slot.
|
overridevirtual |
The peer's public key, when known.
The public key is established when the handshake is complete.
Implements ripple::PeerFinder::Slot.
|
overridevirtual |
Implements ripple::PeerFinder::Slot.
void ripple::PeerFinder::SlotImp::set_listening_port | ( | std::uint16_t | port | ) |
void ripple::PeerFinder::SlotImp::local_endpoint | ( | beast::IP::Endpoint const & | endpoint | ) |
void ripple::PeerFinder::SlotImp::remote_endpoint | ( | beast::IP::Endpoint const & | endpoint | ) |
void ripple::PeerFinder::SlotImp::public_key | ( | PublicKey const & | key | ) |
void ripple::PeerFinder::SlotImp::reserved | ( | bool | reserved_ | ) |
void ripple::PeerFinder::SlotImp::state | ( | State | state_ | ) |
Definition at line 64 of file SlotImp.cpp.
void ripple::PeerFinder::SlotImp::activate | ( | clock_type::time_point const & | now | ) |
Definition at line 85 of file SlotImp.cpp.
class ripple::PeerFinder::SlotImp::recent_t ripple::PeerFinder::SlotImp::recent |
|
private |
|
private |
|
private |
|
staticconstexprprivate |
|
private |
bool ripple::PeerFinder::SlotImp::connectivityCheckInProgress |
clock_type::time_point ripple::PeerFinder::SlotImp::whenAcceptEndpoints |