|
Summary
Set transmission mode to block mode.
Syntax
Boolean BlockMode ()
Description
The method changes the transmission mode to block mode. Before this function is called the user needs to set the BlockSize property. Default value of BlockSize property is 4096.
When a connection is opened, it defaults to STREAM mode. If you whish to initiate a transfer in block mode you must call this method prior to calling the PutFileWithRestart or the GetFileWithRestart
methods.
This method can be called at any time except during a file transfer.
Example
Result = FTPClient.BlockMode ()
Note
Note that the majority of FTP servers that support the Restart following a failed transfer option ONLY support STREAM mode. This means if you make use of this feature, your application must
be able to handle the situations where block mode is supported.
|