regproc.c demonstrates the use of registered procedures in Open Server 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), which returns the version number of Open Server to the client.
dbwait.c – implemented with DB-Library, requests Open Server to notify the client when the registered procedure rp_version executes.
ctwait.c – implemented with Client-Library, requests Open Server to notify the client when the registered procedure rp_version executes.