The FtpSetMode method changes the passive/active mode used for file tranfers to/from the FTP server.
Syntax:
>>-- myftpobj~FtpSetMode(--+--"PASSIVE"--+--)---------------------------->< +--"ACTIVE"---+
Arguments:
Sets passive mode for file transfers. Only the first letter of the argument is significant and it is not case-sensitive.
Sets active mode for file transfers. Only the first letter of the argument is significant and it is not case-sensitive.
Return Values:
A value of 0 indicates successful execution of the method. The value -1 indicates an error. You can get the specific error code by inspection of the method FtpErrno. Possible values:
The internal FTP command or the arguments to the method are in error.
If an error is returned the mode remains unchanged.