FTAM/9000 Programmer's Guide

182 Chapter 4
Using Support Functions
Responding to Asynchronous Calls
For example, this function could be a batch entry console for file
management. Several file transfers could be started without having to
wait for each transfer to complete before starting the next.
map_operation_completed (map_event, map_rc). This
function processes the FTAM events by performing some action on the
results of the FTAM operation that completed. The operation is
identified by the map_event passed as input. If map_rc equals
SUCCESS, the inout_dcb for the operation contains the outcome of the
operation. Otherwise, the map_rc equals EME032_IPC_ERROR; the
operation fails and the inout_dcb does not contain valid information. The
specific actions involved with processing a completed FTAM event are
specific to the particular event, and could be as simple as logging the
results to an output file.