Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ClntCfgAddr.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * authors: Tomasz Mrugalski <thomson@klub.com.pl>
5  * Marek Senderski <msend@o2.pl>
6  *
7  * released under GNU GPL v2 only licence
8  *
9  */
10 
11 class TClntCfgAddr;
12 #ifndef CLNTCFGADDR_H
13 #define CLNTCFGADDR_H
14 
15 #include "DHCPConst.h"
16 #include "ClntParsGlobalOpt.h"
17 #include "SmartPtr.h"
18 #include "IPv6Addr.h"
19 #include <iostream>
20 #include <iomanip>
21 
22 
24 {
25  friend std::ostream& operator<<(std::ostream& out, TClntCfgAddr& group);
26  public:
27  TClntCfgAddr();
29  TClntCfgAddr(SPtr<TIPv6Addr> addr,long valid,long pref);
30  ~TClntCfgAddr();
31 
32  SPtr<TIPv6Addr> get();
33  unsigned long getValid();
34  unsigned long getPref();
36  private:
38  unsigned long Valid;
39  unsigned long Pref;
40 };
41 
42 #endif
43