OSI/FTAM Programming Guide
NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide—528612-001
5-17
Reading a File: C Programming Example
540 check_error ();
541 }
542
543 /******************************************************************/
544 /* Discard the API context information for the association. */
545 /******************************************************************/
546
547 status = APS_DISCARD_ ( cepi );
548 if ( status != ZAPS_VAL_STATUS_OK )
549 {
550 printf ( "APS_DISCARD_ FAILED\n" );
551 check_status ();
552 }
553
554 } /* ftam_regime */
555
556
557 #pragma PAGE "FILE_SELECTION_OPEN_REGIME"
558 /*********************************************************************/
559 /* */
560 /* Name: file_selection_open_regime */
561 /* */
562 /* Description: This procedure establishes the file-selection and */
563 /* file-open regimes, and after the request is processed, */
564 /* moves the association out of these regimes. */
565 /* */
566 /*********************************************************************/
567
568 void file_selection_open_regime ()
569
570 {
571
572 /******************************************************************/
573 /* Initialize the parameters for the FTM_SELECT_REQ_ call. */
574 /******************************************************************/
575
576 remote_file.zlen = strlen (REMOTE_FILE_NAME);
577 memcpy ( remote_file.u_zc.zb, REMOTE_FILE_NAME, remote_file.zlen );
578










