General processing procedures

Whether the incoming request is an RPC or a language, cursor, or dynamic request, the server application performs five general steps:

  1. Prepares the environment.

  2. Accepts the request and retrieves the language, cursor, or dynamic request or RPC parameters.

  3. Performs the requested action.

  4. Returns results to the requesting client.

  5. Ends the conversation.

This section shows how to perform four of these tasks using Gateway-Library functions. The remaining task (the requested action) is performed using familiar programming procedures. See Chapter 3, “Functions,” for detailed information about each function.

NoteThe tables in the following sections cover only the basic function sequences. Refer to the sample programs contained in the appendices of this book to see how these functions are used in context.