class MonServer : public lmsg AppServer

Monitor data server.

Inheritance:


Public Methods

MonServer(const char* Process=0)
Construct a monitor data base and register the server with the name server
virtual ~MonServer(void)
Close the server.
void processMsg(void)
Process a message from the monitor input port
void Attention(void)
Monitor attention handler.
void serveData(const char* Name, const void* iVal, const char* Comm=0)
Serve a power spectrum.
void setServerName(const char* Name)
Set the server name

Inherited from AppServer:

Public Methods

void addHandler(MsgHeader::MsgType type, MsgHandler* handle)
error_t close(void)
error_t handleMessage(void)
error_t open(long flags)
error_t receive(MsgHeader& hdr, void* data, size_t length, double timeout)
error_t receive(MsgHeader& hdr, void* data, size_t length)
error_t reply(const MsgHeader& to, const Message& data)
error_t reply(const MsgHeader& to, const MsgHeader& rhdr, const void* data)
error_t send(const MsgHeader& hdr, const Message& msg)
error_t send(const MsgHeader& hdr, const void* data)
bool waitMsg(wtime_t time)
bool isOpen(void) const
wtime_t getTimeOut(void) const
index_t getDebug(void) const
error_t register_name(const char* server, NameProcs type=p_Any)
void setDebug(index_t debug)
void setDomainName(const char* domain)
void setServerPort(const MsgAddr& addr)
void setTimeOut(wtime_t time)

Documentation

The monitor data server API allows the user to specify data elements to be served on demand to clients. The monitor server maintains a list of the data elements and their names.
MonServer(const char* Process=0)
Construct a monitor data base and register the server with the name server

virtual ~MonServer(void)
Close the server port and unregister its name.

void processMsg(void)
Process a message from the monitor input port

void Attention(void)
Handle the attention interrupt delivered to a monitor.

void serveData(const char* Name, const void* iVal, const char* Comm=0)
Specify a power spectrum to be served on demand. The power spectrum data are converted to Single-precision float numbers before being sent to the client.
Parameters:
Name - Data name
fs - Pointer to data to be served.
Comm - Comment supplied with index.

void setServerName(const char* Name)
Set the server name


This class has no child classes.
Author:
John Zweizig
Version:
1.1; Modified April 20, 2000

alphabetic index hierarchy of classes


generated by doc++