Indy 9 | Content | Index | Reference

TIdFTPTransferMode
See Also, Unit: IdFTPCommon
Represents the transmission mode for data transfers.

    TIdFTPTransferMode = (dmBlock, dmCompressed, dmStream);

Unit
IdFTPCommon
Description
TIdFTPTransferMode is an enumerated type that represents the transmission mode for data transfers. TIdFTPTransferMode often reflects a value based on the associated TIdFTPDataStructure indicated for an FTP client. TIdFTPTransferMode can be used in the TIdFTP.TransferMode method to set the transfer mode prior to FTP GET or PUT operations.

TIdFTPTransferMode can have one of the following values, and associated meanings:

- dmBlock - Data is transmitted as a series of blocks preceded by one or more header bytes. The header bytes contain a descriptor code and a count field that indicates the block type and the total length of data up to the next header.

- dmCompressed - Indicates that data can contain byte strings, compressed data using replications and/or filler, or control bytes. dmCompressed mode is useful for obtaining increased bandwidth on very large network transmissions at a little extra CPU cost.

- dmStream - Data is transmitted as a stream of bytes, and there is no restriction on the data representation for the stream. When dmStream is used for record-structured files, the stream will contain end-of-record and end-of-file control bytes. For a file stream, end-of-file is indicated by the sending host closing the data connection, and all bytes are data bytes.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.