| 
    rippled
    
   | 
 
Properties and state associated with a peer to peer overlay connection. More...
#include <Slot.h>

Public Types | |
| enum | State {  accept , connect , connected , active , closing }  | 
| using | ptr = std::shared_ptr< Slot > | 
Public Member Functions | |
| virtual | ~Slot ()=0 | 
| virtual bool | inbound () const =0 | 
Returns true if this is an inbound connection.   | |
| virtual bool | fixed () const =0 | 
Returns true if this is a fixed connection.   | |
| virtual bool | reserved () const =0 | 
Returns true if this is a reserved connection.   | |
| virtual State | state () const =0 | 
| Returns the state of the connection.   | |
| virtual beast::IP::Endpoint const & | remote_endpoint () const =0 | 
| The remote endpoint of socket.   | |
| virtual std::optional< beast::IP::Endpoint > const & | local_endpoint () const =0 | 
| The local endpoint of the socket, when known.   | |
| virtual std::optional< std::uint16_t > | listening_port () const =0 | 
| virtual std::optional< PublicKey > const & | public_key () const =0 | 
| The peer's public key, when known.   | |
Properties and state associated with a peer to peer overlay connection.
Definition at line 13 of file peerfinder/Slot.h.
Definition at line 16 of file peerfinder/Slot.h.
| Enumerator | |
|---|---|
| accept | |
| connect | |
| connected | |
| active | |
| closing | |
Definition at line 18 of file peerfinder/Slot.h.
      
  | 
  pure virtualdefault | 
      
  | 
  pure virtual | 
Returns true if this is an inbound connection. 
Implemented in ripple::PeerFinder::SlotImp.
      
  | 
  pure virtual | 
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.
Implemented in ripple::PeerFinder::SlotImp.
      
  | 
  pure virtual | 
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.
Implemented in ripple::PeerFinder::SlotImp.
      
  | 
  pure virtual | 
Returns the state of the connection.
Implemented in ripple::PeerFinder::SlotImp.
      
  | 
  pure virtual | 
The remote endpoint of socket.
Implemented in ripple::PeerFinder::SlotImp.
      
  | 
  pure virtual | 
The local endpoint of the socket, when known.
Implemented in ripple::PeerFinder::SlotImp.
      
  | 
  pure virtual | 
Implemented in ripple::PeerFinder::SlotImp.
      
  | 
  pure virtual | 
The peer's public key, when known.
The public key is established when the handshake is complete.
Implemented in ripple::PeerFinder::SlotImp.