Enumerates the transfer modes used for file transfers. See RFC 959 for more details.
When the ftpTransferMode command is sent as part of the Retrieve or Store method, that transfer mode is used by all subsequent data transfers until changed. The ftpTransferMode command is only sent when necessary.
Member | Value | Description |
---|---|---|
ftpBlock | 1 | BLOCK mode. The file is transmitted as a series of data blocks preceded by one or more header bytes. The header bytes contain a count field and descriptor code. The count field indicates the total length of the data block in bytes, thus marking the beginning of the next data block (there are no filler bits). The descriptor code defines: last block in the file (EOF), last block in the record (EOR), restart marker, or suspect data. |
ftpCompressed | 2 | COMPRESSED mode. The COMPRESSED mode transfers compressed data. This mode uses a simple run-length compression algorithm. |
ftpStream | 0 | The data is transmitted as a stream of bytes. There is no restriction on the representation type used; record structures are allowed. This is the default value. |