Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SrvMsgReply.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  */
10 
11 class TSrvMsgReply;
12 #ifndef SRVMSGREPLY_H
13 #define SRVMSGREPLY_H
14 #include "SrvMsg.h"
15 #include "SrvMsgConfirm.h"
16 #include "SrvMsgDecline.h"
17 #include "SrvMsgRequest.h"
18 #include "SrvMsgReply.h"
19 #include "SrvMsgRebind.h"
20 #include "SrvMsgRenew.h"
21 #include "SrvMsgRelease.h"
22 #include "SrvMsgSolicit.h"
23 #include "SrvMsgInfRequest.h"
24 #include "SrvOptIAAddress.h"
25 
26 #include "OptDUID.h"
27 
28 class TSrvMsgReply : public TSrvMsg
29 {
30  public:
39  TSrvMsgReply(SPtr<TSrvMsg> msg, TOptList& options);
40 
41  void doDuties();
42  unsigned long getTimeout();
43  bool check();
44  std::string getName() const;
45 
46  ~TSrvMsgReply();
47 private:
48 
49  bool handleSolicitOptions(TOptList& options);
50  bool handleRequestOptions(TOptList& options);
51  bool handleRenewOptions(TOptList& options);
52  bool handleRebindOptions(TOptList& options);
53  bool handleReleaseOptions(TOptList& options);
54  bool handleDeclineOptions(TOptList& options);
55  bool handleConfirmOptions(TOptList& options);
56  bool handleInfRequestOptions(TOptList& options);
58 };
59 
60 
61 #endif /* SRVMSGREPLY_H */
62