#include <CAVERNnet_rpc_c.hxx>
Public Methods | |
int | init (char *remoteProcedureName, char *ipAddress, int destPort=CAVERNnet_rpcManager_c::DEFAULT_PORT) |
int | call (char *outdata, int outlen, char **retdata, int *retlen) |
int | call1way (char *outdata, int outlen) |
void | setTimeOut (int timeout=CAVERNnet_rpcCaller_c::NEVER_TIME_OUT) |
CAVERNnet_rpcCaller_c () | |
void | showStats (char *streamInfo, char *comment) |
int | logStats (char *streamInfo, char *comment, FILE *filePtr) |
int | sendStats (char *streamInfo, char *comment) |
int | initSendStats (char *monitorClientIP, int port=PERF_DAEMON_DEFAULT_PORT) |
void | exitSendStats () |
Static Public Attributes | |
const int | NEVER_TIME_OUT |
Use to set RPCs to never time out. | |
const int | FAILED |
RPC Failed. | |
const int | OK |
RPC Ok. | |
const int | MEM_ALLOC_ERR |
Mem alloc error in RPC. | |
Private Attributes | |
char* | rpcName |
char | ipAddress [256] |
int | destinationPort |
int | itsTimeOut |
CAVERNnet_perfMonitor_c | pmonitor |
|
Remote procedure call.
|
|
1 way RPC. Ie a remote call without a reply.
|
|
Properly delete the perfDaemonClient after sendStats is done |
|
Initialize RPC.
|
|
Initialize sendStats - provide the IP of the perfDaemon and an optional port number to connect to. This should be done initially before using the sendStats API.
|
|
This logs performance statistics in a file. The user opens a file and passes the file pointer with this function and results of monitoring are written into the logfile.
|
|
Sends the performance statistics to a remote perfdaemon -for further analysis of the monitored data - the initSendStats API should be called first, before calling a sendStats (In order to connect to the perfdaemon initially)
|
|
Set the timeout time waiting for a reply from an RPC.
|
|
Displays the resultant statistics instantaneously in the netlogger format - this should be typically done after a read/write is done a network. Also, it should be noted that a showStats call should be made at the end of atleast one send and receive for two-way information (the same applies for logStats and sendStats)
|