Method FTPClient():connect() Professional
Connects to the FTP server.
:connect( [<nMode>] ) --> lSuccess
|FTP_CONNECT_ACTIVE_MODE (*)||In active mode the server connects the data channel to the client|
|FTP_CONNECT_PASSIVE_MODE||In passive mode the client connects the data channel to the server|
The method returns .T. (true) when a connection to the FTP server is successfully established, otherwise .F. (false) is returned.
This method establishes a connection to the FTP server an FTPClient object is created for. A connection may fail if the object was instantiated with invalid parameters, if the FTP server does not respond or if the user authentication fails. When the connection is successful, files can be exchanged between server and client using the :getFile() or :putFile()methods.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.