FtpSetUser

The FtpSetUser method creates a session with an FTP server and logs the user on.

Syntax:

>>-- myftpobj~FtpSetUser(host, user--+-------------------------+--)------><
                                     +--, password--+----------+
                                                    +--, acct--+

Arguments:

host

The host name or TCP/IP address of the FTP server.

user

The user name for the server.

password

(optional) The user password.

acct

(optional) The accounting information for the user.

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:

FTPCOMMAND

The internal FTP command or the arguments to the method are in error.

FTPHOST

Unknown host name or server not responding.

FTPSOCKET

RxSock function error.

FTPCONNECT

Server not responding or not available.

FTPLOGIN

user, password or acct information is invalid.