21 #ifndef G_NET_CONNECTION_H
22 #define G_NET_CONNECTION_H
42 virtual std::pair<bool,Address>
localAddress()
const = 0 ;
46 virtual std::pair<bool,Address>
peerAddress()
const = 0 ;
virtual std::pair< bool, Address > peerAddress() const =0
Returns the connection's peer address.
virtual std::string peerCertificate() const =0
Returns the connection peer's TLS certificate.
An 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.