OpenTP1 Version 7 Programming Reference C Language

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

7.5.1 Outline of creation procedures

This subsection outlines the creation procedures.

Organization of this subsection
(1) Creating a stub and coding a UAP
(2) Compiling and linking UAPs

(1) Creating a stub and coding a UAP

The procedures for creating a stub and coding a UAP are explained below.

(a) For IDL-only TxRPC
  1. Create the following files:
    (1) IDL file
    (2) Client program
    (3) Manager program
  2. Use the txidl compiler to compile the IDL file that was created in step 1. As a result, the files below are created. A value enclosed in parentheses indicates a default name. (xxxx indicates an IDL file name.)
    (4) Template of a server program (The name is fixed to serv.c)
    The template of a server program can be used without modification. To change the contents, change the name as required, then code the additional processing.
    (5) Template of a user service definition
    The template of a user service definition cannot be used without modification. For how to define the required items, see the explanations of the user service definition in the manual OpenTP1 System Definition.
    (6) Template of an environment definition file (when the -cptype wdce option is specified)
    The template of an environment definition file cannot be used without modification. For how to define the required items, see the explanations of the client environment definition in the manual OpenTP1 TP1/Client/W, TP1/Client/P.
    (7) Client stub (xxxx_cstub.c)
    (8) Server stub (xxxx_sstub.c)
    (9) Header file (xxxx.h)

(2) Compiling and linking UAPs

Compile the program with the C compiler. The library to be linked depends on the specified process type. The libraries to be linked are as follows:

-lbetran
TP1/Server Base library

-lclt
TP1/Client library

The process types to be specified and the libraries required for the client and server programs are listed below.