VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GNet::Connection Class Referenceabstract

An interface which provides address information for a network connection. More...

#include <gconnection.h>

+ Inheritance diagram for GNet::Connection:

Public Member Functions

virtual std::pair< bool, AddresslocalAddress () const =0
 Returns the connection's local address. More...
 
virtual std::pair< bool, AddresspeerAddress () 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.
 

Detailed Description

An interface which provides address information for a network connection.

See Also
GNet::Client, GNet::ServerPeer

Definition at line 37 of file gconnection.h.

Member Function Documentation

virtual std::pair<bool,Address> GNet::Connection::localAddress ( ) const
pure virtual

Returns the connection's local address.

Pair.first is false if none.

Implemented in GNet::ServerPeer, and GNet::SimpleClient.

virtual std::pair<bool,Address> GNet::Connection::peerAddress ( ) const
pure virtual

Returns the connection's peer address.

Pair.first is false if none.

Implemented in GNet::ServerPeer, and GNet::SimpleClient.

virtual std::string GNet::Connection::peerCertificate ( ) const
pure virtual

Returns the connection peer's TLS certificate.

Returns the empty string if none.

Implemented in GNet::ServerPeer, and GNet::SimpleClient.


The documentation for this class was generated from the following files: