Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SrvMsgConfirm.h

Go to the documentation of this file.
00001 /*
00002  * Dibbler - a portable DHCPv6
00003  *
00004  * authors: Tomasz Mrugalski <thomson@klub.com.pl>
00005  *          Marek Senderski <msend@o2.pl>
00006  *
00007  * released under GNU GPL v2 or later licence
00008  *
00009  * $Id: SrvMsgConfirm.h,v 1.2 2004/06/20 17:25:07 thomson Exp $
00010  *
00011  * $Log: SrvMsgConfirm.h,v $
00012  * Revision 1.2  2004/06/20 17:25:07  thomson
00013  * getName() method implemented, clean up
00014  *
00015  *
00016  */
00017 
00018 #ifndef SRVMSGCONFIRM_H
00019 #define SRVMSGCONFIRM_H
00020 #include "SrvMsg.h"
00021 #include "SrvIfaceMgr.h"
00022 #include "SrvTransMgr.h"
00023 #include "SrvCfgMgr.h"
00024 #include "SrvAddrMgr.h"
00025 
00026 // Client sends CONFIRM to a server to verify that his addresses
00027 // are still valid. It could happen when:
00028 // 1. client has restated
00029 // 2. client changed link
00030 class TSrvMsgConfirm : public TSrvMsg
00031 {
00032  public:
00033     TSrvMsgConfirm(SmartPtr<TSrvIfaceMgr> IfaceMgr, 
00034                    SmartPtr<TSrvTransMgr> TransMgr, 
00035                    SmartPtr<TSrvCfgMgr> CfgMgr, 
00036                    SmartPtr<TSrvAddrMgr> AddrMgr,
00037                    int iface, SmartPtr<TIPv6Addr> addr,
00038                    char* buf, int bufSize);
00039     
00040     TSrvMsgConfirm(SmartPtr<TSrvIfaceMgr> IfaceMgr, 
00041                    SmartPtr<TSrvTransMgr> TransMgr, 
00042                    SmartPtr<TSrvCfgMgr> CfgMgr, 
00043                    SmartPtr<TSrvAddrMgr> AddrMgr,
00044                    int iface, SmartPtr<TIPv6Addr> addr);
00045     
00046     bool check();
00047     void answer(SmartPtr<TMsg> Rep);
00048     void doDuties();
00049     unsigned long getTimeout();
00050     ~TSrvMsgConfirm();
00051     string getName();
00052 
00053 };
00054 #endif /* SRVMSGCONFIRM_H*/
00055 

Generated on Mon Dec 27 21:55:22 2004 for Dibbler - a portable DHCPv6 by  doxygen 1.3.9.1