ftpc_login - Log onto the FTP server. |
#include <pthr_ftpc.h> int ftpc_login (ftpc ftpc, const char *username, const char *password); |
Attempt to log onto the FTP server as user username with password password. If username is NULL, "ftp" or "anonymous", then log in anonymously. For anonymous logins, the password may be NULL, in which case the environment variable LOGNAME followed by a single @ character is used as the password. |
0 if successful, -1 if the attempt failed. If a fatal error occurs with the connection, an exception is thrown. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
pthrlib-3.0.3 |