DCE Application Programming Guide
Sample Application Listings
HP NonStop DCE Application Programming Guide—429551-003
A-14
Port to Use the DCE Version 1.1 Server Initialization
API
Port to Use the DCE Version 1.1 Server
Initialization API
This subsection contains the complete listings of the following files for the Information
Please server using the DCE version 1.1 server initialization API:
•
The sams File on page A-15
•
The Error Macro File on page A-16
•
The Server File on page A-17
•
The Make File on page A-20
•
The README File on page A-22
No changes were made to the IDL file infpls.idl, the ACF infpls.acf, the client
source file infpls_c.c, or the server installation file infpls_i.c. These files are
not listed here but can be found under Straight Port to NonStop DCE on page A-1.
which can write into /.:/applications.
Then type:
infpls_i.out -i
To run the server type:
infpls_s.out
To run the client, set the environment variable
RPC_DEFAULT_ENTRY
to
/.:/applications/info_server_group
for example, using the C-shell type:
setenv RPC_DEFAULT_ENTRY /.:/applications/info_server_group
Using the Korn shell type:
export RPC_DEFAULT_ENTRY=/.:/applications/info_server_group
then type:
infpls_c.out
For each server running, the client will print out a report like this:
Directory Service Name = /.:/applications/info_server_mynode
System Name = System V
Node Name = mynode
Release = 4
Version = 3.2
Machine Type = I386
For a NonStop server, it will print a report like this:
Directory Service Name = /.:/applications/info_server_kt22
System Name = NONSTOP_KERNEL
Node Name = kt22
Release = G06
Version = G06.00
Machine Type = NSR-N
NOTE: If using this example as the basis for a new application, be sure
to change the Interface UUID in the IDL file.
Figure A-8. The README File in a Straight Port (page 2 of 2)