OpenTP1 Version 7 Programming Reference C Language
7.5.1 Outline of creation procedures
(1) Creating a stub and coding a UAP
The procedures for creating a stub and coding a UAP are explained below.
- Create the following files:
- (1) IDL file
- (2) Client program
- (3) Manager program
- 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.
- -cptype ndce and -sptype ndce
Client: -lbetran and -ltactk
Server: -lbetran and -ltactk
- -cptype wdce and -sptype ndce
Client: -ltpldce and -lclt, and DCE-related libraries
Server: -lbetran and -ltactk
- -cptype ndce and -sptype wdce
Client: -lbetran and -ltactk
Server: -ltpldce, -lbetran, and DCE-related libraries
- -cptype wdce and -sptype nbet
Client: DCE-related libraries
Server: DCE-related libraries
- -cptype nbet and -sptype wdce
Client: DCE-related libraries
Server: DCE-related libraries
- -cptype nbet and -sptype nbet
Client: DCE-related libraries
Server: DCE-related libraries
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.