1#ifndef XRPL_PEERFINDER_SLOT_H_INCLUDED 
    2#define XRPL_PEERFINDER_SLOT_H_INCLUDED 
    4#include <xrpl/beast/net/IPEndpoint.h> 
    5#include <xrpl/protocol/PublicKey.h> 
A version-independent IP address and port combination.
 
Properties and state associated with a peer to peer overlay connection.
 
virtual bool inbound() const =0
Returns true if this is an inbound connection.
 
virtual beast::IP::Endpoint const & remote_endpoint() const =0
The remote endpoint of socket.
 
virtual bool fixed() const =0
Returns true if this is a fixed connection.
 
virtual std::optional< std::uint16_t > listening_port() const =0
 
virtual State state() const =0
Returns the state of the connection.
 
virtual bool reserved() const =0
Returns true if this is a reserved connection.
 
virtual std::optional< PublicKey > const & public_key() const =0
The peer's public key, when known.
 
virtual std::optional< beast::IP::Endpoint > const & local_endpoint() const =0
The local endpoint of the socket, when known.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.