OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-231
Translation Application Example
358 /* the responder. If open works, it will enable as well */
359 if (OpenResponderFile()) /* Try to open once */
360 printf ("Opener Backup Gone! Reestablished Open"
361 "with Primary.\n");
362 else
363 {
364 printf ("Opener Gone! Attempting to reopen every %d"
365 " seconds.\n",
366 RETRY_OPEN_TIMEOUT_VALUE / 100);
367 SIGNALTIMEOUT (RETRY_OPEN_TIMEOUT_VALUE);
368 }
369 }
370 break;
371 default:
372 break;
373 }
374 }
375 #pragma PAGE "WaitForTranslation"
376 /**********************************************************************/
377 /* */
378 /* Name: WaitForTranslation */
379 /* */
380 /* Description: Read message from $RECEIVE and process it for‘ */
381 /* translation. Returns TRUE if shutdown not wanted. */
382 /**********************************************************************/
383 BOOL WaitForTranslation (void)
384 {
385 shortsLen,
386 sXltErr,
387 sCmd = 0;
388 intiNdx;
389 struct
390 {
391 shortsSize;
392 charzName [ZFTM_VAL_REQ_FILENAME_LEN];
393 }sReqFname;
394 struct
395 {
396 shortsSize;