Executing registered procedures

Open Server executes registered procedures in response to a client or remote Adaptive Server RPC, if the RPC has been registered. However, an Open Server application can also explicitly execute a registered procedure, instead of executing it in response to an RPC. For example, an application can synchronize the activity of multiple clients by executing a particular notification procedure at a particular point in the application.

Explicitly executing a registered procedure also requires several steps. They are as follows:

  1. Call srv_reginit to begin executing a registered procedure. This routine specifies the name of the registered procedure to be executed. The Open Server application also uses this routine to determine whether one or all of the client threads on the notification list will be notified.

  2. Call srv_regparam to supply the parameter data for the execution.

  3. Call srv_regexec to actually execute the registered procedure.