Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::NetworkAddress Class Reference
[Networking library]

Network address base class. More...

#include <pnetaddr.h>

Inheritance diagram for P::NetworkAddress:

P::ATalkAddress P::Inet6Address P::InetAddress P::IpxAddress List of all members.

Public Member Functions

 NetworkAddress (const NetworkAddress &addr)
virtual ~NetworkAddress ()
int family () const
 Returns the address family.

const void * addr () const
socklen_t addrlen () const
virtual std::string str () const=0
virtual NetworkAddressclone () const=0
NetworkAddressoperator= (const NetworkAddress &addr)

Protected Member Functions

 NetworkAddress (int family, socklen_t addrlen)
void * _addr () const

Detailed Description

Network address base class.

This class is used as a base class for all network address classes supported by the Socket class.

Author:
Christian Prochnow <cproch@seculogix.de>

Definition at line 43 of file pnetaddr.h.


Constructor & Destructor Documentation

P::NetworkAddress::NetworkAddress const NetworkAddress addr  ) 
 

virtual P::NetworkAddress::~NetworkAddress  )  [virtual]
 

P::NetworkAddress::NetworkAddress int  family,
socklen_t  addrlen
[protected]
 


Member Function Documentation

void* P::NetworkAddress::_addr  )  const [inline, protected]
 

Definition at line 66 of file pnetaddr.h.

const void* P::NetworkAddress::addr  )  const [inline]
 

Definition at line 51 of file pnetaddr.h.

socklen_t P::NetworkAddress::addrlen  )  const [inline]
 

Definition at line 54 of file pnetaddr.h.

virtual NetworkAddress* P::NetworkAddress::clone  )  const [pure virtual]
 

Implemented in P::ATalkAddress, P::Inet6Address, P::InetAddress, and P::IpxAddress.

int P::NetworkAddress::family  )  const
 

Returns the address family.

NetworkAddress& P::NetworkAddress::operator= const NetworkAddress addr  ) 
 

Reimplemented in P::ATalkAddress.

virtual std::string P::NetworkAddress::str  )  const [pure virtual]
 

Implemented in P::ATalkAddress, P::Inet6Address, P::InetAddress, and P::IpxAddress.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:35 2004 for P::Classes by doxygen 1.3.3