ctos.c sample program

The ctos.c sample 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 ctos.c processes a variety of client commands:

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.