To create a UAP for IDL-only TxRPC communication:
- Create an interface definition language file (IDL file).
- Compile the IDL file with an IDL compiler (txidl command).
- Code the program based on the template of a server UAP created by the txidl command. Also code the client UAP.
- Compile and link the created stub and coded program by using the txidl command with the C compiler.
The figure below shows the procedures for creating a UAP that communicates with IDL-only TxRPC.
Figure 6-1 Procedures for creating a UAP that communicates with IDL-only TxRPC
![[Figure]](figure/zu060100.gif)
- Organization of this subsection
- (1) Files created by the user
- (2) Files created by the IDL compiler
The IDL compiler (txidl command) creates the following files:
- Client stub
A client stub links with the client program.
- Server stub
A server stub links with the server program.
- Header file
A header file defines declarations for TxRPC.
- Template of a server program
Template of a server program that executes user work.
- Template of a user service definition
Template of a user service definition set for the program created by the user.
- Template of a client environment definition
Template of a TP1/Client client environment definition set for the program created by the user. This template is created when the option to create a gateway program in the txidl command is specified.
Among the files noted above, the user can modify the templates of a server program, user service definition, and client environment definition before using them. For details on templates, see 7.5 TxRPC examples (templates created by the IDL compiler).