The ctosdemo.c program is an Open Server gateway application that uses Server-Library calls and Client-Library calls. It accepts commands from a client and passes them to a remote Adaptive Server. Then, it retrieves the results from the remote server and passes them to the client. This program ctosdemo.c processes a variety of client commands:
Bulk-copy commands
Cursor commands
Dynamic SQL commands
Language commands
Option commands
Remote procedure calls (RPCs)
In addition, it responds to attention requests from a client by calling the srv_attention event handler. It includes an event handler routine to process each type of client command.
For more information on gateways, see the Open Server Server-Library/C Reference Manual.