InetFTPLogin
int InetFTPLogin (const char *FTPServer, const char *userName, const char *password);
Purpose
![]() |
Note This function has been superseded by InetFTPLoginEx. |
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. |
Return Value
| Name | Type | Description |
| FTPHandle | int | The value that you must use in subsequent function calls to specify this FTP connection. Negative values indicate that an error occurred. |
Additional Information
Library: Internet Library
Include file: cvintwrk.h
LabWindows/CVI compatibility: LabWindows/CVI 7.1 and later
Example
Refer to internet\ftpclnt\ftpclnt.cws for an example of using the InetFTPLogin function.
