wwFtpClient::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. - check .cErrorMsg for error information.

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: 06/02/24
Comment or report problem with topic