An interface which provides address information for a network connection. More...
#include <gconnection.h>
Public Member Functions | |
virtual std::pair< bool, Address > | localAddress () const =0 |
Returns the connection's local address. More... | |
virtual std::pair< bool, Address > | peerAddress () const =0 |
Returns the connection's peer address. More... | |
virtual std::string | peerCertificate () const =0 |
Returns the connection peer's TLS certificate. More... | |
virtual | ~Connection () |
Destructor. More... | |
An interface which provides address information for a network connection.
Definition at line 39 of file gconnection.h.
|
virtual |
Destructor.
Definition at line 25 of file gconnection.cpp.
|
pure virtual |
Returns the connection's local address.
Pair.first is false if none.
Implemented in GNet::ServerPeer, and GNet::SimpleClient.
|
pure virtual |
Returns the connection's peer address.
Pair.first is false if none.
Implemented in GNet::ServerPeer, and GNet::SimpleClient.
|
pure virtual |
Returns the connection peer's TLS certificate.
Returns the empty string if none.
Implemented in GNet::ServerPeer, and GNet::SimpleClient.