FeeServer::Command Class Reference
[Packets.]

#include <feeserver/fee_packet.hh>

Inheritance diagram for FeeServer::Command:

Inheritance graph
[legend]
Collaboration diagram for FeeServer::Command:

Collaboration graph
[legend]

List of all members.


Detailed Description

The command structure.

Public Types

enum  {
  UpdateServer = 0x4, RestartServer = 0x8, RebootMachine = 0x10, ShutdownMachine = 0x20,
  ExitServer = 0x40, SetDeadband = 0x80, GetDeadband = 0x100, SetIssueTimeout = 0x200,
  GetIssueTimeout = 0x400, SetUpdateRate = 0x800, GetUpdateRate = 0x1000, SetLogLevel = 0x2000,
  GetLogLevel = 0x4000, ShowServices = 0x8000
}

Public Member Functions

 Command (unsigned int id=0, short error=0, unsigned short flags=0, unsigned char *data=0, size_t size=0)
virtual ~Command ()

Public Attributes

bool _header_ok

Member Enumeration Documentation

anonymous enum

Server commands

Enumerator:
UpdateServer  Update server
RestartServer  Restart the server
RebootMachine  Reboot
ShutdownMachine  Shutdown
ExitServer  Exit server
SetDeadband  Set Deadband Format of data is
	  data             ::= value services
	  value            ::= floating point number 
	  services         ::= service_name | service_wildcard 
	  service_name     ::= name of a service w/o server prefix 
	  service_wildcard ::= *_ string
	  
GetDeadband  Get dead-band. Data should contain service name. Returns floating point number in acknowledge
SetIssueTimeout  Set issue timeout. Data must contain a unsigned short.
GetIssueTimeout  Get issue timeout. Returns a unsigned short in acknowledge data
SetUpdateRate  Set monitor update rate in milliseconds. Data must contain a unsigned long.
GetUpdateRate  Get monitor update rate in milliseconds. Returns a unsigned long in acknowledge data
SetLogLevel  Set log mask. Data must contain a unsigned int.
GetLogLevel  Get log mask. Returns a unsigned int in acknowledge data
ShowServices  Show monitored services


Constructor & Destructor Documentation

FeeServer::Command::Command ( unsigned int  id = 0,
short  error = 0,
unsigned short  flags = 0,
unsigned char *  data = 0,
size_t  size = 0 
) [inline]

Constructor

Parameters:
id Acknowledge Id. Copy of the request number.
error Return code
flags Flags
data The return data block.
size Size of the return block.

virtual FeeServer::Command::~Command (  )  [inline, virtual]

Destructor


Member Data Documentation

Is the header OK?


The documentation for this class was generated from the following file:

Generated on Thu Jun 26 17:02:32 2008 for FeeServer++ 0.9 by  doxygen 1.5.6