00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef SRVMSGADVERTISE_H
00022 #define SRVMSGADVERTISE_H
00023
00024 #include "ClntMsg.h"
00025
00026 class TClntMsgAdvertise : public TClntMsg
00027 {
00028 public:
00029 TClntMsgAdvertise(SmartPtr<TClntIfaceMgr> IfaceMgr,
00030 SmartPtr<TClntTransMgr> TransMgr,
00031 SmartPtr<TClntCfgMgr> CfgMgr,
00032 SmartPtr<TClntAddrMgr> AddrMgr,
00033 int iface, SmartPtr<TIPv6Addr> addr);
00034
00035 TClntMsgAdvertise(SmartPtr<TClntIfaceMgr> IfaceMgr,
00036 SmartPtr<TClntTransMgr> TransMgr,
00037 SmartPtr<TClntCfgMgr> CfgMgr,
00038 SmartPtr<TClntAddrMgr> AddrMgr,
00039 int iface, SmartPtr<TIPv6Addr> addr,
00040 char* buf, int bufSize);
00041
00042
00043 int getPreference();
00044 bool check();
00045 void answer(SmartPtr<TClntMsg> Rep);
00046 void doDuties();
00047 string getName();
00048 ~TClntMsgAdvertise();
00049 };
00050
00051 #endif
00052