FTAM/9000 Programmer's Guide
50 Chapter 2
Using HP FTAM/9000
Using Regimes
Using the Data Transfer Regime
The Data Transfer regime is the innermost regime; it supports the
transfer of actual data.
Entering the File Open
Regime
Functions Used Within
the File Open Regime
Exiting the File Open
Regime
Invoke ft_open() to access
a file's contents
ft_locate() locates a specific
place (FADU) in a file
(FTAM-2 files only)
ft_erase() completely erases
an entire file
ft_read() enters the Data
Transfer regime and
requests data transfer from
an FTAM file
ft_write() enters the Data
Transfer regime and
requests data transfer to an
FTAM file
Invoke ft_close() to move
back to the File Selection
regime and close the file to
further access
Entering the Data
Transfer Regime
Functions Used Within
the Data Transfer Regime
Exiting the Data Transfer
Regime
Invoke ft_read() to
request the transfer of
data from an FTAM file
OR
Invoke ft_write() to
request the transfer of
data to an FTAM file
ft_sdata() sends (writes) data
ft_rdata() receives (reads)
data
ft_edata() ends the sending of
data
Invoke ft_etransfer() to move
back to the File Open regime
and end data transfer
OR
Invoke ft_cancel() to move
back to the File Open regime
and cancel the transfer of
data
OR
If you have received a
cancellation indication,
invoke ft_rcancel() to
acknowledge the indication
and move back to the File
Open regime