3#include <xrpl/beast/net/IPEndpoint.h>
4#include <xrpl/protocol/PublicKey.h>
21 [[nodiscard]]
virtual bool
28 [[nodiscard]]
virtual bool
35 [[nodiscard]]
virtual bool
39 [[nodiscard]]
virtual State
A version-independent IP address and port combination.
Properties and state associated with a peer to peer overlay connection.
std::shared_ptr< Slot > ptr
virtual beast::IP::Endpoint const & remoteEndpoint() const =0
The remote endpoint of socket.
virtual bool reserved() const =0
Returns true if this is a reserved connection.
virtual std::optional< beast::IP::Endpoint > const & localEndpoint() const =0
The local endpoint of the socket, when known.
virtual State state() const =0
Returns the state of the connection.
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 std::optional< PublicKey > const & publicKey() const =0
The peer's public key, when known.
virtual std::optional< std::uint16_t > listeningPort() const =0