The FtpSetUser method creates a session with an FTP server and logs the user on.
Syntax:
>>-- myftpobj~FtpSetUser(host, user--+-------------------------+--)------>< +--, password--+----------+ +--, acct--+
Arguments:
The host name or TCP/IP address of the FTP server.
The user name for the server.
(optional) The user password.
(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:
The internal FTP command or the arguments to the method are in error.
Unknown host name or server not responding.
RxSock function error.
Server not responding or not available.
user, password or acct information is invalid.