The aftp_set_allocation_size call sets the AFTP file allocation size. A connection to the AFTP server is not required before using this call. The file allocation size can be changed at any time.
AFTP_ENTRY aftp_set_allocation_size(
IN AFTP_HANDLE_TYPE connection_id,
IN AFTP_ALLOCATION_SIZE_TYPE allocation_size,
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 file allocation size for AFTP file
* transfers.
*/
aftp_set_allocation_size(
connection_id,
500,
&aftp_rc);
if (aftp_rc != AFTP_RC_OK) {
fprintf(stderr, "Error setting AFTP allocation size.\n");
}
}
None.