FtpLogin

Login to remote system.

SYNOPSIS

#include <ftplib.h>

int FtpLogin(const char *user, const char *pass, netbuf *nControl);
int FtpLoginAcct(const char *user, const char *pass, const char *acct, netbuf *nControl);

PARAMETERS

user
Specifies the username.
pass
Specifies the password.
acct
Specifies the account. (Used only if the server requires it. BS2000 is an example for such server.)
nControl
A handle returned by FtpConnect().

DESCRIPTION

FtpLogin() attempts to login to the remote system with the supplied username and password.

RETURN VALUE

Returns 1 if successful or 0 on error.