InetFTPLogin
int InetFTPLogin (const char *FTPServer, const char *userName, const char *password);
Purpose
Opens a new FTP connection to the FTP server on the specified machine.
 |
Note A timeout value of 60 seconds will be used when reading data packets from and writing data packets to the FTP server. Use InetFTPLoginEx to change the timeout value. |
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. |
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. |