Previous Topic: Regenerating Remote Files After TestingNext Topic: Setting Up the C Proxy API Environment


C Proxy

The C Proxy API is a generated C language header file that provides you the flexibility to call CA Gen Distributed Processing Server (DPS) applications from any C language application or any application that supports a C language interface.

The CA Gen Proxy Generator creates a C language header file that the application programmer uses to define the import and export views passed to and from a generated DPS. In addition, the CA Gen Proxy Generator creates a TVF (Tuxedo View File) for use when Tuxedo is used as the communication type.

This chapter describes how to use the generated header file (and TVF file), a description of the C Proxy API calls, and an overview of how to build a user-written application that includes the generated header and API calls.

The following illustration shows how the C proxy is used:

C Proxy Diagram

The CA Gen product installation includes a sample CA Gen model as well as a sample user-written application, which utilizes the C Proxy API. The example user-written code and the associated makefile can be found in the sample subdirectory of the CA Gen product installation directory. The supplied Sample model can be found in the product installation sample.ief subdirectory. The example user-written application is designed to communicate with the Sample model P900 server load module.

Together the user-written application and the generated P900 server load module comprise a complete and usable application demonstrating the use of the C Proxy API.