The aftp_extract_block_size call extracts the file block size. If the aftp_set_block_size call has not been invoked, the AFTP default block size value is returned.
AFTP_ENTRY aftp_extract_block_size(
IN AFTP_HANDLE_TYPE connection_id,
OUT AFTP_BLOCK_SIZE_TYPE AFTP_PTR block_size,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR return_code
);
{
AFTP_HANDLE_TYPE connection_id;
AFTP_RETURN_CODE_TYPE aftp_rc;
AFTP_BLOCK_SIZE_TYPE block_size;
/*
* Before issuing the example call, you must have:
* a connection_id, use: aftp_create()
*/
aftp_extract_block_size(
connection_id,
&block_size,
&aftp_rc);
if (aftp_rc != AFTP_RC_OK) {
fprintf(stderr, "Error extracting AFTP block size.\n");
}
}
None.