The aftp_set_write_mode call sets the way existing files will be handled during data transfer. A connection to the AFTP server is not required before using this call. The write mode can be changed at any time.
AFTP_ENTRY aftp_set_write_mode(
IN AFTP_HANDLE_TYPE connection_id,
IN AFTP_WRITE_MODE_TYPE write_mode,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR return_code
);
{
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 write mode for the AFTP
* file transfer.
*/
aftp_set_write_mode(
connection_id,
AFTP_REPLACE,
&aftp_rc);
if (aftp_rc != AFTP_RC_OK) {
fprintf(stderr, "Error setting AFTP write mode.\n");
}
}
None.