OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-110
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
154 #define dst_filename "$VOLUME.SUBVOL.DSTFILE"
155
156 #define num_elem 5
157
158 int ftam_doc_type[num_elem] = {1,0,8571,5,3};
159 int ap_title[num_elem] = {1,3,9999,1,7};
160 int src_ap_title[num_elem] = {1,3,9999,1,7};
161 int dst_ap_title[num_elem] = {1,3,9999,1,7};
162
163 long ae_qualifier = 0;
164 long src_ae_qualifier = 1;
165 long dst_ae_qualifier = 1;
166
167 /**********************************************************************/
168 /* Miscellaneous constants */
169 /**********************************************************************/
170 #define ANYEVENT -1 /* Wait for receipt of any FTAM event */
171 #define MAX_BUF 1000 /* Buffer size used for receiving data*/
172 #define NOCEPI -1 /* Uninitialized or invalid CEPI. */
173 #define WAIT_FOREVER -1L /* Wait indefinitely for FTAM event */
174
175 #define FALSE 0
176 #define TRUE 1
177
178 /**********************************************************************/
179 /* Miscellaneous variables */
180 /**********************************************************************/
181
182 int src_cepi = NOCEPI; /* CEPI for source file associations */
183 int dst_cepi = NOCEPI; /* CEPI for destination file assoc. */
184 int wait_mode; /* Wait or nowait mode */
185 long threshold; /* Error threshold used in groups */
186 int event; /* FTAM event code */
187 int dst_event; /* FTAM destination event code */
188
189 /**********************************************************************/
190 /* Boolean control variables */
191 /**********************************************************************/
192