60 const char *parameters
123 extern TRviHandle
rviInit(
char *configFilename);
168 extern int rviConnect(TRviHandle handle,
const char *addr,
const char *port);
247 const char *serviceName );
265 extern int rviGetServices( TRviHandle handle,
char **result,
int* len );
288 const char *serviceName,
289 const char *parameters );
int rviCleanup(TRviHandle handle)
Tear down the API.
ERviStatus
Definition: rvi.h:64
int rviDisconnect(TRviHandle handle, int fd)
Disconnect from a remote node with a specified file descriptor.
int rviInvokeService(TRviHandle handle, const char *serviceName, const char *parameters)
Invoke a remote service.
int rviGetConnections(TRviHandle handle, int *conn, int *connSize)
Return all file descriptors in the RVI context.
int rviGetServices(TRviHandle handle, char **result, int *len)
Get list of services available.
TRviHandle rviInit(char *configFilename)
Initialize the RVI library. Call before using any other functions.
int rviProcessInput(TRviHandle handle, int *fdArr, int fdLen)
Handle input on remote connection(s).
int rviRegisterService(TRviHandle handle, const char *serviceName, TRviCallback callback, void *serviceData)
Register a service with a callback function.
void(* TRviCallback)(int fd, void *serviceData, const char *parameters)
Definition: rvi.h:58
int rviConnect(TRviHandle handle, const char *addr, const char *port)
Connect to a remote node at a specified address and port.
int rviUnregisterService(TRviHandle handle, const char *serviceName)
Unregister a previously registered service.
void * TRviHandle
Definition: rvi.h:55