#include <CenterComImp.h>
Public Member Functions | |
CenterComImp (const AGENT &agent, const ADDRESS ¢er) | |
~CenterComImp () | |
bool | send (const ADDRESS &address, const RefCountBuffer &message) |
bool | get_agents (AGENT_VECTOR *agents, CENTER_PARAMS *params) |
void | unregister () |
Private Attributes | |
AGENT | _agent |
ADDRESS | _center |
|
Constructor receives all the information about the agent for the registrations, and procceed the registration on the Center server. |
|
Destructor procceed unregistration on the Center server server and release resources. |
|
Sends the get agents request and retrives the information from the respond. |
|
Sends a message header (magic + message) to the specified adderss and the message itself. |
|
Sends unregister packet to the center (magic + unregister + address). |
|
Stores the information about the agent itself. |
|
The address of the Center cerver |