FTAM/9000 Programmer's Guide

Chapter 3 121
HP FTAM/9000 Data Structures
Ft_data_unit
Ft_structure_id specifies which structure in the data union is applicable
(Ft_data_element or Ft_node_descriptor) or it specifies the end or
cancellation of data transfer (on output only).
Ft_data_element
struct Ft_data_element {
enum Ft_prim_type {
FT_DE_BOOLEAN = 1,
FT_DE_INTEGER = 2,
FT_DE_BIT_STRING = 3,
FT_DE_OCTET_STRING = 4,
FT_DE_NULL = 5,
FT_DE_IA5_STRING = 22,
FT_DE_UTC = 23,
FT_DE_TIME = 24,
FT_DE_GRAPHIC_STRING = 25,
FT_DE_VISIBLE_STRING = 26,
FT_DE_GENERAL_STRING = 27,
FT_DE_FLOATING_POINT = 100,
FT_DE_UL_FLOAT = 101,
FT_DE_UL_INTEGER = 102,
FT_DE_ATTRIBUTES = 200
FT_DE_RECORD_END = 201
FT_DE_RECORD_CONT = 202
} prim_type;
FT_DATA_UNIT Use FT_DATA_UNIT to send actual data. FT_DATA_UNIT
dictates that you choose data_element in the data union.
FT_NODE_DESC Use FT_NODE_DESC only for FTAM-2 document types to begin
a new FADU. FT_NODE_DESC dictates that you choose node in
the data union.
FT_ENTER SUBTREE
FT_EXIT_SUBTREE
HP-UX responders return an error if you use either of these
values.
FT_DATA_END_IND When using ft_rdata(), FTAM returns FT_DATA_END_IND in
inout_dcb.data_unit->structure_id to indicate data transmission
is complete.
FT_CANCEL_IND If an error occurs when transferring data, FTAM returns
FT_CANCEL_IND in inout_dcb.data_unit->structure_id to
indicate data transmission is cancelled. To acknowledge the data
transfer was cancelled, you must issue ft_rcancel() to exit the
Data Transfer regime.