GNet::AddressStorage Class Reference

A helper class for calling getsockname() and getpeername() and hiding the definition of sockaddr_storage. More...

#include <gaddress.h>

List of all members.

Public Member Functions

 AddressStorage ()
 Default constructor.
 ~AddressStorage ()
 Destructor.
sockaddr * p1 ()
 Returns the sockaddr pointer for getsockname()/getpeername() to write into.
socklen_t * p2 ()
 Returns the length pointer for getsockname()/getpeername() to write into.
const sockaddr * p () const
 Returns the pointer.
socklen_t n () const
 Returns the length.


Detailed Description

A helper class for calling getsockname() and getpeername() and hiding the definition of sockaddr_storage.

Definition at line 225 of file gaddress.h.


Constructor & Destructor Documentation

GNet::AddressStorage::AddressStorage (  ) 

Default constructor.

Definition at line 611 of file gaddress_ipv4.cpp.

References GNet::AddressStorageImp::n.

GNet::AddressStorage::~AddressStorage (  ) 

Destructor.

Definition at line 617 of file gaddress_ipv4.cpp.


Member Function Documentation

sockaddr * GNet::AddressStorage::p1 (  ) 

Returns the sockaddr pointer for getsockname()/getpeername() to write into.

Definition at line 622 of file gaddress_ipv4.cpp.

References GNet::AddressImp::Sockaddr::general, and GNet::AddressStorageImp::u.

Referenced by GNet::Socket::getAddress().

socklen_t * GNet::AddressStorage::p2 (  ) 

Returns the length pointer for getsockname()/getpeername() to write into.

Definition at line 627 of file gaddress_ipv4.cpp.

References GNet::AddressStorageImp::n.

Referenced by GNet::Socket::getAddress().

const sockaddr * GNet::AddressStorage::p (  )  const

Returns the pointer.

Definition at line 632 of file gaddress_ipv4.cpp.

References GNet::AddressImp::Sockaddr::general, and GNet::AddressStorageImp::u.

socklen_t GNet::AddressStorage::n (  )  const

Returns the length.

Definition at line 637 of file gaddress_ipv4.cpp.

References GNet::AddressStorageImp::n.


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