aftp_extract_date_mode

The aftp_extract_date_mode call extracts the way file dates are handled for data transfer. If the aftp_set_date_mode call has not been invoked, the AFTP default date mode value is returned.

AFTP_ENTRY aftp_extract_date_mode(
IN AFTP_HANDLE_TYPE
connection_id,
OUT AFTP_DATE_MODE_TYPE AFTP_PTR
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
The type of date given to the new file after transfer.
AFTP_NEWDATE
Assign the time/date stamp of the time of transfer.
AFTP_OLDDATE
Assign the time/date stamp of the source file.
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;
    AFTP_DATE_MODE_TYPE        date_mode;

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

    aftp_extract_date_mode(
        connection_id,
        &date_mode,
        &aftp_rc);
    if (aftp_rc != AFTP_RC_OK) {
        fprintf(stderr, "Error extracting AFTP date mode.\n");
    }

}
 

Line Flows

None.