Main Page   Class Hierarchy   Data Structures   File List   Data Fields  

CenterComImp Class Reference

This is implements the CenterCommunicator class. More...

#include <CenterComImp.h>


Public Member Functions

 CenterComImp (const AGENT &agent, const ADDRESS &center)
 ~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


Detailed Description

This is implements the CenterCommunicator class.


Constructor & Destructor Documentation

CenterComImp::CenterComImp const AGENT   agent,
const ADDRESS   center
 

Constructor receives all the information about the agent for the registrations, and procceed the registration on the Center server.

CenterComImp::~CenterComImp  
 

Destructor procceed unregistration on the Center server server and release resources.


Member Function Documentation

bool CenterComImp::get_agents AGENT_VECTOR *    agents,
CENTER_PARAMS   params
 

Sends the get agents request and retrives the information from the respond.

bool CenterComImp::send const ADDRESS   address,
const RefCountBuffer &    message
 

Sends a message header (magic + message) to the specified adderss and the message itself.

void CenterComImp::unregister  
 

Sends unregister packet to the center (magic + unregister + address).


Field Documentation

AGENT CenterComImp::_agent [private]
 

Stores the information about the agent itself.

ADDRESS CenterComImp::_center [private]
 

The address of the Center cerver


The documentation for this class was generated from the following file:
Generated on Sun Mar 2 01:48:11 2003 for Agent by doxygen1.3-rc3