InetFTPLoginEx

int InetFTPLoginEx (const char *FTPServer, const char *userName, const char *password, int timeout);

Purpose

Opens a new FTP connection to the FTP server on the specified machine.

Parameters

Input
Name Type Description
FTPServer const char * The name or IP address of a remote machine running an FTP server on the standard FTP server port (21). If the FTP server is using a non-standard port, then you can specify the port using the syntax address:port.
userName const char * The user name to use when logging in to the FTP server.
password const char * The password to use when logging in to the FTP server. You may pass NULL if no password is required. If you pass an empty string, this function uses an empty password.
timeout integer The timeout value, in milliseconds, used when reading data packets from and writing data packets to the FTP server.

Return Value

Name Type Description
FTPHandle integer The value that you must use in subsequent function calls to specify this FTP connection. Negative values indicate that an error occurred.