class CAVERNplus_rpcCaller_c

Remote Procedure Caller class

Public Methods

int call (char *outdata, int outlen, char** retdata, int *retlen)
Remote procedure call
int call1way (char *outdata, int outlen)
1 way RPC
int init (char *remoteProcedureName, char* ipAddress, int destPort=CAVERNplus_rpcManager_c::DEFAULT_PORT)
Initialize RPC
void setTimeOut (int timeout = CAVERNplus_rpcCaller_c::NEVER_TIME_OUT)
Set the timeout time waiting for a reply from an RPC

Public


const int CAVERNplus_rpcCaller_c :: NEVER_TIME_OUT
Use to set RPCs to never time out.
const int CAVERNplus_rpcCaller_c :: FAILED
RPC Failed
const int CAVERNplus_rpcCaller_c :: OK
RPC Ok
const int CAVERNplus_rpcCaller_c :: MEM_ALLOC_ERR
Mem alloc error in RPC

Documentation

Remote Procedure Caller class. Use this to call the remote RPC manager.

int init(char *remoteProcedureName, char* ipAddress, int destPort=CAVERNplus_rpcManager_c::DEFAULT_PORT)
Initialize RPC
Returns:
OK or MEM_ALLOC_ERR
Parameters:
remoteProcedureName - name of remote procedure
ipAddress - ip address of rpc server.
destPort - destination port of rpc server.

int call(char *outdata, int outlen, char** retdata, int *retlen)
Remote procedure call
Returns:
OK or MEM_ALLOC_ERR or FAILED
Parameters:
outdata - outgoing data
outlen - outgoing data size
retdata - incoming return data
retlen - incoming return data size

int call1way(char *outdata, int outlen)
1 way RPC. Ie a remote call without a reply.
Returns:
OK or FAILED
Parameters:
outdata - outgoing data
outlen - outgoing data size

void setTimeOut(int timeout = CAVERNplus_rpcCaller_c::NEVER_TIME_OUT)
Set the timeout time waiting for a reply from an RPC
Parameters:
timeout - is either CAVERNplus_rpcClient_c::NEVER_TIME_OUT or time in seconds.


This class has no child classes.

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