GNet::Connection Class Reference

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

#include <gconnection.h>

Inheritance diagram for GNet::Connection:

GNet::ServerPeer GNet::SimpleClient GNet::BufferedServerPeer GNet::HeapClient GNet::ResolverImp GPop::ServerPeer GSmtp::AdminServerPeer GSmtp::ServerPeer GNet::Client GSmtp::Client GSmtp::RequestClient GSmtp::SpamClient

List of all members.

Public Member Functions

virtual std::pair< bool, AddresslocalAddress () const =0
 Returns the connection's local address.
virtual std::pair< bool, AddresspeerAddress () const =0
 Returns the connection's peer address.
virtual ~Connection ()
 Destructor.


Detailed Description

An interface which provides address information for a network connection.

See also:
GNet::Client, GNet::ServerPeer

Definition at line 39 of file gconnection.h.


Constructor & Destructor Documentation

GNet::Connection::~Connection (  )  [virtual]

Destructor.

Definition at line 25 of file gconnection.cpp.


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.


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

Generated on Fri Apr 18 15:56:13 2008 for E-MailRelay by  doxygen 1.5.5