Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Description and example of the API header z/OS Communications Server: CMIP Services and Topology Agent Guide SC27-3646-00 |
|
The API header is built for the application program when the application program calls API functions that send messages to CMIP services. It is returned to the application program when the message is sent from CMIP services to the application program. The API header begins in the first byte of the message. The length of the header varies according to the size of the local identifier. If the message contains data in addition to the API header, the data begins immediately following the API header. The C language definition of the API header follows. Note that actual local identifiers vary in size from one to eight bytes in length and can be of any data type. It is declared as an eight-character array for simplicity. Note: To facilitate reading on any host terminal and printing
on any host printer, trigraph sequences have been used for square
brackets. These sequences are "??(" for left square bracket and "??)" for
right square bracket.
The actual size of the API header associated with a particular message received from CMIP services is determined by the size of the fixed part (all fields up to but not including the localIDs field) plus the number of attached local identifiers times the size of each local identifier. For this release, the number of attached local identifiers is always one. The actual size is a useful quantity because the string portions of the message start immediately after the API header. To make it easier to calculate the actual size, the APIhdrSize
macro is provided in the language header file, ACYAPHDH. Given the
name of an APIhdr and the size of the application's local identifiers,
it returns the actual size of an API header. The following example
shows the APIhdrSize macro:
|
Copyright IBM Corporation 1990, 2014
|