ftpc_login

NAME
SYNOPSIS
DESCRIPTION
RETURNS
AUTHOR
LICENSE
VERSION

NAME

ftpc_login - Log onto the FTP server.

SYNOPSIS

#include <pthr_ftpc.h>

int ftpc_login (ftpc ftpc, const char *username, const char *password);

DESCRIPTION

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.

RETURNS

0 if successful, -1 if the attempt failed. If a fatal error occurs with the connection, an exception is thrown.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

pthrlib-3.0.3