next up previous contents index
Next: Class Parsing Up: RPC service Previous: RPC service   Contents   Index

C RPC access routines

At present, the C interface to RPC is undocumented and may be subject to change.

As an example the call to retrieve a list of variables is

long daVarList(char *pattern, char ***listp, int *count);
This function will return a pointer to a list of all registered variables that begin with the string contained in pattern. The number of variables in the list will be returned in count. For example
status = daVarList("parm.", &list, &count);
will return a list of all variables in the parameter class.

Routines are also available to read or write any parameter. Since there is a networking overhead that limits RPC to several hundred calls a second, routines will also be provided that can set or read an arbitrary list of variables in one subroutine call. Since RPC calls are served in between the processing of events, the use of a single RPC call to read or write a list of variables insures that all variables returned or set correspond to a single event.



Mohammad Ahmed 2003-07-23