00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 class TSrvMsgRequest;
00019 #ifndef SRVMSGREQUEST_H
00020 #define SRVMSGREQUEST_H
00021
00022 #include "SmartPtr.h"
00023 #include "SrvMsg.h"
00024 #include "SrvAddrMgr.h"
00025 #include "SrvCfgMgr.h"
00026 #include "SrvIfaceMgr.h"
00027 #include "IPv6Addr.h"
00028
00029 class TSrvMsgRequest : public TSrvMsg
00030 {
00031 public:
00032 TSrvMsgRequest(SmartPtr<TSrvIfaceMgr> IfMgr,
00033 SmartPtr<TSrvTransMgr> TransMgr,
00034 SmartPtr<TSrvCfgMgr> ConfMgr,
00035 SmartPtr<TSrvAddrMgr> AddrMgr,
00036 int iface);
00037
00038 TSrvMsgRequest(SmartPtr<TSrvIfaceMgr> IfMgr,
00039 SmartPtr<TSrvTransMgr> TransMgr,
00040 SmartPtr<TSrvCfgMgr> ConfMgr,
00041 SmartPtr<TSrvAddrMgr> AddrMgr,
00042 int iface, SmartPtr<TIPv6Addr> addr, char* buf, int bufSize);
00043
00044 void answer(SmartPtr<TMsg> msg);
00045 void doDuties();
00046 bool check();
00047 unsigned long getTimeout();
00048 ~TSrvMsgRequest();
00049 string getName();
00050
00051 private:
00052 SmartPtr<TSrvAddrMgr> AddrMgr;
00053 TContainer< SmartPtr<TMsg> > BackupSrvLst;
00054 };
00055
00056
00057 #endif
00058