DCE Application Programming Guide
HP NonStop DCE Application Programming Guide—429551-003
B-1
B
Sample Mixed-Language Application
This appendix discusses:
•
The Interface Definition Language (IDL) File on page B-1
•
The Attribute Configuration File (ACF) on page B-2
•
The Server File on page B-2
•
The Client File on page B-4
•
The COBOL File on page B-7
•
The Make File on page B-8
•
The README File on page B-9
This client/server application uses the same error macro definitions as those used by
the Information Please application in Appendix A, Sample Application Listings;
therefore, that file (errmac.h) is not included in this appendix.
The client and server programs are very simple:
•
The server supports only two remote procedure calls: Turnaround and
TurnaroundCobol. For each call, the server just increments and returns an
iteration count. A variable-length buffer is also supplied in the procedure call, which
the server returns without modifying. TurnaroundCobol calls a COBOL
subroutine to increment the iteration count.
•
The client makes repeated calls to one of the remote procedures. The procedure to
call, the number of calls to make, and the size of the buffer to send are all
parameters to the client program. The client times the RPC calls and displays a
summary of the RPC and byte transfer rate of all the calls.
The server listens on a well-known endpoint. The client binds directly to the endpoint,
bypassing the endpoint mapper. The IP address of the server and which protocol
sequence to use must be specified in environment variables to the client.
The Interface Definition Language (IDL) File
The Interface Definition Language (IDL) file is shown in Figure B-1 on page B-2.