C++ interface to psiRpc_t client-side functionality.
More...
#include <PsiInterface.hpp>
C++ interface to psiRpc_t client-side functionality.
The PsiRpcClient class is a basic wrapper around the C psiRpc_t structure and associated client-side functions from the PsiInterface.h header. It provides the user with C++ style access to basic RPC client operations.
◆ PsiRpcClient()
PsiRpcClient::PsiRpcClient |
( |
const char * |
name, |
|
|
char * |
outFormat, |
|
|
char * |
inFormat |
|
) |
| |
|
inline |
Constructor for PsiRpcClient.
- Parameters
-
[in] | name | constant character pointer name used for input and output queues. |
[in] | outFormat | character pointer to format that should be used for formatting output. |
[in] | inFormat | character pointer to format that should be used for parsing input. |
◆ call()
int PsiRpcClient::call |
( |
int |
nargs, |
|
|
|
... |
|
) |
| |
|
inline |
Send request to an RPC server from the client and wait for a response. See rpcCall in PsiInterface.h for details.
- Parameters
-
[in] | nargs | int Number of arguments being passed. |
[in,out] | ... | mixed arguments that include those that should be formatted using the output format string, followed by those that should be assigned parameters extracted using the input format string. These that will be assigned should be pointers to memory that has already been allocated. |
- Returns
- integer specifying if the receive was succesful. Values >= 0 indicate success.
The documentation for this class was generated from the following file: