class CAVERNnet_perfDaemonClient_c This class is a very low-level class that is designed for specific uses
| | CAVERNnet_perfDaemonClient_c (int isPerfClient = 0) Constructor |
|
| CAVERNnet_perfDaemonClient_c (CAVERNnet_tcpClient_c*, int isPerfClient = 0) Use this constructor if you have a pre-opened socket |
| | read (char** ret, int* nbytes, int blockingType) Read data from a reflector (if available) |
| | write (char *outgoingData, int* nbytes) Write data to the reflector |
| | isReadyToRead () Determines if a socket has data available to read |
| | isReadyToWrite () Determines if a socket is ready to write |
| | isReady () Determines if a socket is ready to write or read or both |
|
| showStatus (int status, int nbytes) Show status of connection in English. |
|
| showStats () Show statistics of a connection. |
|
| close () Close the current client connection. |
| | connectToServer (char *ip, int port=PERF_DAEMON_DEFAULT_PORT) Connect to a server |
| | setTimeOut (int timeout=CAVERNnet_perfDaemonClient_c::NO_TIME_OUT) Set timeout for read and writes |
| |
| ||||||||||||||||||
|
| Accessor functions
|
This class is a very low-level class that is designed for specific uses. If what you want to do is checking performance characteristics of your application, you don't have to use this class at all. All CAVERNsoft G2 classes since version 1.1 are updated with instrumentation features.CAVERNnet_perfDaemonClient_c is a specially designed class specifically for use with CAVERNnet_perfDaemon_c class or performance monitoring daemon application that instantiates and utilizes CAVERNnet_perfDaemon_c class. This class can be used if you want to do one of the following:
First, it can be used to communicate directly with performance daemon. If you want to send special messages to the daemon, you can use this class for the purpose. Second, you are developing real time performance monitoring applications like QoSiMoto.
If you want to send your own special messages to performance monitoring daemon, you have to simply instantiate this class and use provided methods to send special messages to the performance daemon. If your interest is in monitoring the performance characteristics of other applications then you need to register as performance monitoring client when you instantiate this class. Read the description of constructors to find out how to register your application as performance monitoring client.
int read(char** ret, int* nbytes, int blockingType)
ret - set to a pointer to a char*. Read will allocate memory for the
buffer and assign it to your pointer. You are responsible for deleteing
the buffer once you are done with it.
nbytes - returns the number of bytes in the buffer.
int write(char *outgoingData, int* nbytes)
nbytes - set to size of the buffer refered to by outgoingData
int isReadyToRead()
int isReadyToWrite()
int isReady()
unsigned int getRemoteIP()
void getRemoteIP(char* name)
int connectToServer(char *ip, int port=PERF_DAEMON_DEFAULT_PORT)
port - Port to connect to.
void setTimeOut(int timeout=CAVERNnet_perfDaemonClient_c::NO_TIME_OUT)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de