| 
    rippled
    
   | 
 
#include <SlotImp.h>


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.   | |
| 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 & | remote_endpoint () const override | 
| The remote endpoint of socket.   | |
| std::optional< beast::IP::Endpoint > const & | local_endpoint () const override | 
| The local endpoint of the socket, when known.   | |
| std::optional< PublicKey > const & | public_key () const override | 
| The peer's public key, when known.   | |
| std::string | prefix () const | 
| 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 | |
| bool const | m_inbound | 
| bool const | 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 std::int32_t constexpr | unknownPort = -1 | 
      
  | 
  inherited | 
| Enumerator | |
|---|---|
| accept | |
| connect | |
| connected | |
| active | |
| closing | |
Definition at line 18 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 8 of file SlotImp.cpp.
| ripple::PeerFinder::SlotImp::SlotImp | ( | beast::IP::Endpoint const & | remote_endpoint, | 
| bool | fixed, | ||
| clock_type & | clock | ||
| ) | 
Definition at line 27 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.
| std::string ripple::PeerFinder::SlotImp::prefix | ( | ) | const | 
      
  | 
  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 45 of file SlotImp.cpp.
| void ripple::PeerFinder::SlotImp::activate | ( | clock_type::time_point const & | now | ) | 
Definition at line 79 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 |