DCE Application Programming Guide
HP NonStop DCE Application Programming Guide—429551-003
A-1
A Sample Application Listings
This appendix contains the complete listings for the sample DCE applications
described in Section 5, Porting Applications. These sample programs are based on the
Information Please application developed by Harold Lockhart, Jr. and Fred Oldfield and
described in OSF DCE: Guide to Developing Distributed Applications.
The Information Please server is ported in two forms:
•
As a straight port to NonStop DCE, described in Straight Port to NonStop DCE.
•
As a port to use the DCE version 1.1 server initialization API, described in Port to
Use the DCE Version 1.1 Server Initialization API on page A-14.
Straight Port to NonStop DCE
This subsection contains these complete listings for the Information Please application
as a straight port to NonStop DCE:
•
The Interface Definition Language (IDL) File
•
The Error Macro File on page A-3
•
The Server File on page A-4
•
The Client File on page A-7
•
The Installation File on page A-9
•
The Make File on page A-11
•
The README File on page A-12
No changes were made to the Interface Definition Language (IDL) file infpls.idl,
the attribute configuration file (ACF) infpls.acf, or the error macro definitions in the
errmac.h file. These files appear in this subsection to provide a complete listing.
Minor modifications were made to the remaining files, as indicated in Porting
Information Please to NonStop DCE on page 5-1. The changed areas of files are
printed in bold type.
The Interface Definition Language (IDL) File
The Interface Definition Language (IDL) file is shown in Figure A-1 on page A-2.