21#ifndef G_NET_CONNECTION_H
22#define G_NET_CONNECTION_H
An abstract interface which provides address information for a network connection.
virtual ~Connection()=default
Destructor.
virtual std::pair< bool, Address > peerAddress() const =0
Returns the connection's peer address.
virtual std::pair< bool, Address > localAddress() const =0
Returns the connection's local address.
virtual std::string connectionState() const =0
Returns the connection state as a display string.
virtual std::string peerCertificate() const =0
Returns the peer's TLS certificate.