21#ifndef G_NET_CONNECTION_H
22#define G_NET_CONNECTION_H
The GNet::Address class encapsulates a TCP/UDP transport address.
An abstract interface which provides information about a network connection.
virtual ~Connection()=default
Destructor.
virtual Address peerAddress() const =0
Returns the connection's peer address.
virtual 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.