Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ClntMsgSolicit.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  * changes: Krzysztof Wnuk <keczi@poczta.onet.pl>
7  * released under GNU GPL v2 only licence
8  *
9  * $Id: ClntMsgSolicit.h,v 1.7 2008-08-29 00:07:28 thomson Exp $
10  *
11  */
12 
13 class TClntIfaceMgr;
14 
15 #ifndef CLNTMSGSOLICIT_H
16 #define CLNTMSGSOLICIT_H
17 #include "ClntMsg.h"
18 #include "ClntCfgMgr.h"
19 #include "ClntCfgIA.h"
20 
21 class TClntMsgSolicit : public TClntMsg
22 {
23 public:
26  TContainer< SPtr<TClntCfgPD> > pdLst, bool rapid=false,
27  bool remoteAutoconf = false);
28 
29  void answer(SPtr<TClntMsg> msg);
30 
31  void doDuties();
33  void sortAnswers();
34  std::string getName() const;
35  bool check();
37 
38  private:
39  // method returns max. preference value of received ADVERTISE messages
40  int getMaxPreference();
41 };
42 #endif
43