OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-15
Example 1 in C—Updating a Remote File (in Nowait
Mode)
115 #pragma LIST
116
117 /**********************************************************************/
118 /* Global data declarations */
119/***********************************************************************/
120
121 /***********************************************************************/
122 /* Environment-specific fields */
123 /* You will need to change these fields to reflect your FTAM */
124 /* environment.local_file must contain a valid expanded Guardian */
125 /* file name in internal format, and remote_file_name must contain a */
126 /* valid file name for the remote system. In this example, */
127 /* remote_file_name is shown as a Guardian file. */
128 /**********************************************************************/
129
130 #define local_appl_name "APPL1"
131 #define responding_appl_name "APPL2"
132 #define manager_name "$APMGR "
133 #define local_file "$VOLUME SUBVOL LOCALF "
134 #define remote_file_name "$VOLUME.SUBVOL.REMOTEF"
135
136 /**********************************************************************/
137 /* Nowait I/O tags */
138 /**********************************************************************/
139
140 #define ABORT_TAG 1 /* User-abort request tag */
141 #define DATA_TAG 2 /* FTM data request tag */
142 #define DATAEND_TAG 3 /* FTM data-end request tag */
143 #define EVENTREC_TAG 4 /* APS event-receive request tag */
144 #define FILECLOSE_TAG 5 /* FTM file-close request tag */
145 #define FILEOPEN_TAG 6 /* FTM file-open request tag */
146 #define INITIALIZE_TAG 7 /* FTM initialize request tag */
147 #define TERMINATE_TAG 8 /* FTM terminate request tag */
148 #define TRANSFEREND_TAG 9 /* FTM transfer-end request tag */
149 #define WRITE_TAG 10 /* FTM write request tag */
150 #define READ_TAG 11 /* Guardian read tag */
151
152 /**********************************************************************/
153 /* Miscellaneous literals */