00001 #ifndef __CENTER_COMMUNICATOR_H__ 00002 #define __CENTER_COMMUNICATOR_H__ 00003 00004 #include "RefCountBuffer.h" 00005 #include "CenterComImp.h" 00006 00014 class CenterCommunicator 00015 { 00016 public: 00020 CenterCommunicator(const AGENT &agent, const ADDRESS ¢er); 00021 00025 ~CenterCommunicator(); 00026 00030 bool send(const ADDRESS &address, const RefCountBuffer &message); 00031 00033 bool get_agents(AGENT_VECTOR* agents, CENTER_PARAMS* params); 00034 00036 void unregister(); 00037 00039 static LPCTSTR int2str_ip(unsigned int); 00040 00041 private: 00042 CenterComImp *_center_com_imp; 00043 }; 00044 00045 #endif // __CENTER_COMMUNICATOR_H__