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.