Index: ftplib.rst =================================================================== --- ftplib.rst (revision 63184) +++ ftplib.rst (working copy) @@ -200,6 +200,24 @@ it is on by default.) +.. method:: FTP.set_transmissionmode(mode) + + Specifies the mode in which to transmit files retrieved in BINARY transfer mode. + Legal values per RFC 959 are 'S' (STREAM, the default), 'B' (BLOCK) and + 'C' (COMPRESSED). This library supports STREAM and BLOCK modes only. + + STREAM mode transmits files as one continuous stream. The data connection closes + once the server has sent all data. + + BLOCK mode transmits files in discrete blocks, each preceded by a three-byte + header describing the block's content (e.g. EOF, end-of-record, suspect data, or + restart marker) and its length. The data connection is NOT closed when the file + transmission is completed, instead remaining open so that subsequent file requests + may use the existing data connection. This mode might be useful when requesting + a large number of files in passive mode across a firewall. Known FTP servers + supporting BLOCK Mode include MadGoat running on VMS. + + .. method:: FTP.storbinary(command, file[, blocksize, callback]) Store a file in binary transfer mode. *command* should be an appropriate