STATUS FtpConnect(FTP **, char *hostname 1)
Makes channel to the server, at the ``hostname'' machine.
Creates FTP data structure and returns pointer to it. If the procedure FtplibDebug(1)
was previously called, FtpConnect calls automatically FtpDebug for the debug mode to be turned on.
(Chapter , page
).
STATUS FtpUser(FTP *, char *user)
Sends the name of the user to the server. The connection must be done before it.
STATUS FtpPassword(FTP *, char *password)
Sends password to the server. The function FtpUser must be called before it.
STATUS FtpAccount(FTP *, char *acct)
Sends a name of the account to the server. The name of the account is not standard attribute for many systems, so this function is used very seldom. The function FtpPassword must be called before it.
STATUS FtpLogin(FTP **, char *hostname, char *user, char *password, char *account)
Executes functions FtpConnect, FtpUser, FtpPassword, FtpAccount (if necessary) consistently. If the name of the account is absent, replaces it with the NULL value.
Finishes work with the server and closes all channels. 2