Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

net::AgentService Class Reference

This class provides the methods needed by an agent process. More...

#include <AgentService.h>

Inheritance diagram for net::AgentService:

net::ServerInterface List of all members.

Public Member Functions

ResponseMessage ProcessQuery (QueryMessage aQuery)
 This method redefines the ProcessQuery method of the ServerInterface class. Its role is to execute commands coming from the controller and build a ResponseMessage.
int SetHandle (AgentHandler *aHandler)
 This method sets the AgentHandler to apply to this AgentService. This allow the user to control the action performed when a descriptor arrives.

Protected Attributes

PRThread * mTaskThread
AgentHandlermHandler

Detailed Description

This class provides the methods needed by an agent process.

Author:
Laurent Moutel


Member Function Documentation

ResponseMessage net::AgentService::ProcessQuery QueryMessage  aQuery  )  [virtual]
 

This method redefines the ProcessQuery method of the ServerInterface class. Its role is to execute commands coming from the controller and build a ResponseMessage.

Returns:
A ResponseMessage containing the response to send
Parameters:
aQuery the QueryMessage to send over the network

Implements net::ServerInterface.

int net::AgentService::SetHandle AgentHandler aHandler  ) 
 

This method sets the AgentHandler to apply to this AgentService. This allow the user to control the action performed when a descriptor arrives.

Returns:
-1 on success, else 0
Parameters:
aHandler The AgentHandler to apply to the AgentService


Member Data Documentation

AgentHandler* net::AgentService::mHandler [protected]
 

A AgentHandler associated to this service, allowing descriptor handling and checking

PRThread* net::AgentService::mTaskThread [protected]
 

The thread handling controller's requests


The documentation for this class was generated from the following file:
Generated on Fri May 19 23:12:37 2006 for common by  doxygen 1.4.4