The regproc.c program demonstrates the use of registered procedures in Open Server versions 11.1 and later. The application registers several procedures at start-up time, and then waits for client commands. No Open Server event handlers are installed.
Clients send RPC commands to execute the registered procedures defined in regproc.c.
Several additional client programs are provided for use with regproc.c:
version.c – executes a registered procedure (rp_version) that returns the version of the Open Server
dbwait.c – implemented with DB-Library, registers with the Open Server to be notified when the registered procedure rp_version is executed
ctwait.c – implemented with Client-Library, registers with the Open Server to be notified when the registered procedure rp_version is executed