OSI/FTAM Programming Guide
Using FTM Procedure Calls
HP NonStop OSI/FTAM Programming Guide—528612-001
4-44
Procedure-Call Sequence
Table 4-17. Calls for Reading an FTAM File
Step Action to Take Procedure(s) to Call
1 Issue a read request. FTM_READ_REQ_
a. If error returned by FTM_READ_REQ_,
check status.
APS_STATUS_
b. If nowait mode, await completion of
FTM_READ_REQ_.
MFM_AWAITIOX_
c. If error returned by MFM_AWAITIOX_, check
status.
APS_STATUS_
2 Get the next event. APS_EVENT_RECEIVE_
a. If nowait mode, await completion of
APS_EVENT_RECEIVE_.
MFM_AWAITIOX_
3 Check status: Is the event an F-DATA
indication? Or, if APS_EVENT_RECEIVE_
returns a status other than ZAPS-VAL-STATUS-
EVENT, is there an error?
APS_STATUS_
4 Get the indication data. FTM_DATA_IND_
5 Get the next event. APS_EVENT_RECEIVE_
a. If nowait mode, await completion of
APS_EVENT_RECEIVE_.
MFM_AWAITIOX_
6 Check status: Is the event an F-DATA-END
indication? Or, if APS_EVENT_RECEIVE_
returns a status other than ZAPS-VAL-STATUS-
EVENT, is there an error?
APS_STATUS_
7 Get the indication data. FTM_DATA_END_IND_
8 Issue a transfer end request. FTM_TRANSFER_END_REQ_
a. If error returned by
FTM_TRANSFER_END_REQ_, check status.
APS_STATUS_
b. If nowait mode, await completion of
FTM_TRANSFER_END_REQ_.
MFM_AWAITIOX_
c. If error returned by MFM_AWAITIOX_, check
status.
APS_STATUS_
9 Get the next event. APS_EVENT_RECEIVE_
a. If nowait mode, await completion of
APS_EVENT_RECEIVE_.
MFM_AWAITIOX_
10 Check status: is the event a transfer-end
confirm? Or, if APS_EVENT_RECEIVE_ returns
a status other than ZAPS-VAL-STATUS-EVENT,
is there an error?
APS_STATUS_
11 Retrieve service confirm information. FTM_TRANSFER_END_CNF_