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