aftp_set_date_mode

The aftp_set_date_mode call sets the way file dates are handled during data transfer. A connection to the AFTP server is not required before using this call. The date mode can be changed at any time.

AFTP_ENTRY aftp_set_date_mode(
IN AFTP_HANDLE_TYPE
connection_id,
IN AFTP_DATE_MODE_TYPE
date_mode,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR
return_code
);

Parameters

connection_id
An AFTP connection object originally created with aftp_create.
date_mode
Specifies the way file dates are handled during data transfer.
AFTP_NEWDATE
Assign the time/date stamp of the time of transfer.
AFTP_OLDDATE
Assign the time/date stamp of the source file. This is the default.
return_code
The return code issued for this function. See AFTP Return Codes for the list of possible return codes.

Example

{
    AFTP_HANDLE_TYPE        connection_id;
    AFTP_RETURN_CODE_TYPE   aftp_rc;

    /*
     * Before issuing the example call, you must have:
     *    a connection_id, use:  aftp_create()
     */

    /*
     * Set the date mode for AFTP file
     * transfers.
     */

    aftp_set_date_mode(
        connection_id,
        AFTP_OLDDATE,
        &aftp_rc);

    if (aftp_rc != AFTP_RC_OK) {
        fprintf(stderr, "Error setting AFTP date mode.\n");
    }

}
 

Line Flows

None.