The aftp_set_data_type call sets the data type for file transfers. A connection to the AFTP server is not required before using this call. The data type can be changed at any time.
AFTP_ENTRY aftp_set_data_type(
IN AFTP_HANDLE_TYPE connection_id,
IN AFTP_DATA_TYPE_TYPE data_type,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR return_code
);
This is the default setting.
{
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 data type for AFTP file
* transfers.
*/
aftp_set_data_type(
connection_id,
AFTP_BINARY,
&aftp_rc);
if (aftp_rc != AFTP_RC_OK) {
fprintf(stderr, "Error setting AFTP data type.\n");
}
}
None.