DCE Application Programming Guide

Sample Mixed-Language Application
HP NonStop DCE Application Programming Guide429551-003
B-10
The README File
Figure B-7. The README File in a Mixed-Language Application (page 1 of 2)
The Turnaround application is a very simple DCE client-server
application where the server is a mixture of C and COBOL.
===============================================================
FILES
readme.txt This file
turnaround.idl Interface Definition File
turnaround.acf Attribute Configuration File
errmac.h Error Macros
server.c Server
client.c Client
turnaround.cbl COBOL procedure for server
Makefile Make file
BUILDING
Create a build file appropriate to your environment using the one
provided as a model.
The build will create two executables:
server Server
client Client
SERVER EXECUTION
To run the server type:
server
When the server has finished initializing, it will display:
Turnaround server is now listening for calls.
CLIENT EXECUTION
To run the client, set the environment variable
IPADDRESS
to the ip address of the server’s machine.
For example:
export IPADDRESS=130.252.136.226
Also, set the environment variable
PROTSEQ
to the protocol sequence to use.
For example:
export PROTSEQ=ncacn_ip_tcp