wwSFtpClient::Connect

This establishes the initial connection to the server. The connection needs to stay open for any of the FTP operation commands.

You should always check the return value from the connect request and check .cErrorMsg for error results.

Call .Close() when you're done with the connection.

o.Connect(lcServer, lcUsername, lcPassword)

Return Value

.T. or .F.

Parameters

lcServer
Optional - the FTP server name. Alternately use .cFtpServer.

Server should be specified as a domain name or IP address:

Do not use a url like ftp://somesite.com:123. Each of the components have to be explicitly assigned to .cServer


See also:

Class wwSFtpClient

© West Wind Technologies, 2024 • Updated: 05/26/24
Comment or report problem with topic