OSI/FTAM Programming Guide

Using FTM Procedure Calls
HP NonStop OSI/FTAM Programming Guide528612-001
4-39
Procedure-Call Sequence
Table 4-16. Calls for Writing an FTAM File
Step Action to Take Procedure(s) to Call
1 Issue a write request. FTM_WRITE_REQ_
a. If error returned by FTM_WRITE_REQ_,
check status.
APS_STATUS_
b. If nowait mode, await completion of
FTM_WRITE_REQ_.
MFM_AWAITIOX_
c. If error returned by MFM_AWAITIOX_, check
status.
APS_STATUS_
2 Issue a data request. FTM_DATA_REQ_
a. If error returned by FTM_DATA_REQ_,
check status.
APS_STATUS_
b. If nowait mode, await completion of
FTM_DATA_REQ_.
MFM_AWAITIOX_
c. If error returned by MFM_AWAITIOX_, check
status.
APS_STATUS_
3 Issue a data end request. FTM_DATA_END_REQ_
a. If error returned by FTM_DATA_END_REQ_,
check status.
APS_STATUS_
b. If nowait mode, await completion of
FTM_DATA_END_REQ_.
MFM_AWAITIOX_
c. If error returned by MFM_AWAITIOX_, check
status.
APS_STATUS_
4 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
FTM_TRANSFER_END_REQ_.
MFM_AWAITIOX_
c. If error returned by MFM_AWAITIOX_, check
status.
APS_STATUS_
5 Get the next event. APS_EVENT_RECEIVE_
a. If nowait mode, await completion
APS_EVENT_RECEIVE_.
MFM_AWAITIOX_
6 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_
7 Retrieve service confirm information. FTM_TRANSFER_END_CNF_