OpenTP1 Version 7 Programming Reference C Language

[Contents][Index][Back][Next]

6.1.1 Procedures for using IDL-only TxRPC

To create a UAP for IDL-only TxRPC communication:

  1. Create an interface definition language file (IDL file).
  2. Compile the IDL file with an IDL compiler (txidl command).
  3. Code the program based on the template of a server UAP created by the txidl command. Also code the client UAP.
  4. 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]

Organization of this subsection
(1) Files created by the user
(2) Files created by the IDL compiler

(1) Files created by the user

The user creates the following files:

(2) Files created by the IDL compiler

The IDL compiler (txidl command) creates the following files:

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).