aftp_set_block_size

The aftp_set_block_size call sets the file block size. A connection to the AFTP server is not required before using this call. The file block size can be changed at any time.

AFTP_ENTRY aftp_set_block_size(
IN AFTP_HANDLE_TYPE
connection_id,
IN AFTP_BLOCK_SIZE
block_size,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR
return_code
);

Parameters

connection_id
An AFTP connection object originally created with aftp_create.
block_size
The AFTP file block size in bytes. The default block size value is zero.
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;

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

    /*
     * Set the file block size for AFTP file
     * transfers.
     */

    aftp_set_block_size(
        connection_id,
        512,
        &aftp_rc);
    if (aftp_rc != AFTP_RC_OK) {
        fprintf(stderr, "Error setting AFTP block size.\n");
    }

}
 

Line Flows

None.