Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TAddrAddr Class Reference

#include <AddrAddr.h>

+ Inheritance diagram for TAddrAddr:
+ Collaboration diagram for TAddrAddr:

Public Member Functions

 TAddrAddr (SPtr< TIPv6Addr > addr, long pref, long valid)
 AddrAddr constructor for addresses.
 TAddrAddr (SPtr< TIPv6Addr > addr, long pref, long valid, int prefix)
 AddrAddr constructor for prefixes.
SPtr< TIPv6Addrget ()
unsigned long getPref ()
int getPrefix ()
unsigned long getPrefTimeout ()
 returns preferred lifetime left
enum EAddrStatus getTentative ()
long getTimestamp ()
unsigned long getValid ()
unsigned long getValidTimeout ()
 returns valid lifetime
void setPref (unsigned long pref)
void setTentative (enum EAddrStatus state)
void setTimestamp (long ts)
void setTimestamp ()
void setValid (unsigned long valid)

Protected Attributes

SPtr< TIPv6AddrAddr
unsigned long Prefered
int Prefix
enum EAddrStatus Tentative
unsigned long Timestamp
unsigned long Valid

Friends

std::ostream & operator<< (std::ostream &strum, TAddrAddr &x)

Constructor & Destructor Documentation

TAddrAddr::TAddrAddr ( SPtr< TIPv6Addr addr,
long  pref,
long  valid 
)

AddrAddr constructor for addresses.

constructor used for creating an address

Parameters
addrIPv6 address
prefprefered lifetime
validvalid lifetime
TAddrAddr::TAddrAddr ( SPtr< TIPv6Addr addr,
long  pref,
long  valid,
int  prefix 
)

AddrAddr constructor for prefixes.

constructor used for prefix creation

Parameters
addrIPv6 address that will be used as a prefix
prefprefered lifetime
validvalid lifetime
prefixlength of the prefix (1..128)

Member Function Documentation

SPtr< TIPv6Addr > TAddrAddr::get ( )
unsigned long TAddrAddr::getPref ( )
int TAddrAddr::getPrefix ( )
unsigned long TAddrAddr::getPrefTimeout ( )

returns preferred lifetime left

returns preferred lifetime

Returns
preferred lifetime
enum EAddrStatus TAddrAddr::getTentative ( )
long TAddrAddr::getTimestamp ( )
unsigned long TAddrAddr::getValid ( )
unsigned long TAddrAddr::getValidTimeout ( )

returns valid lifetime

returns valid lifetime

Returns
valid lifetime
void TAddrAddr::setPref ( unsigned long  pref)
void TAddrAddr::setTentative ( enum EAddrStatus  state)
void TAddrAddr::setTimestamp ( long  ts)
void TAddrAddr::setTimestamp ( )
void TAddrAddr::setValid ( unsigned long  valid)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  strum,
TAddrAddr x 
)
friend

Member Data Documentation

SPtr<TIPv6Addr> TAddrAddr::Addr
protected
unsigned long TAddrAddr::Prefered
protected
int TAddrAddr::Prefix
protected
enum EAddrStatus TAddrAddr::Tentative
protected
unsigned long TAddrAddr::Timestamp
protected
unsigned long TAddrAddr::Valid
protected

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