tfFtpConnect
Table of Contents >> Application Reference >> FTP Client API
Note: | The content on this page has been deprecated. |
For the new content, please see tfNgFtpConnect(). |
#include <trsocket.h> |
int tfFtpConnect | ( |
ttUserFtpHandle ftpUserHandle, | |
char * ipAddressPtr | |
); |
Function Description
This function attempts to connect to a remote FTP server.
Parameters
- ftpUserHandle
- The FTP session handle.
- ipAddressPtr
- The IP address of the remote FTP server.
Returns
- TM_ENOERROR
- Success.
- TM_WOULDBLOCK
- This FTP session is non-blocking and the call did not complete.
- TM_EALREADY
- Command in progress (previous call did not yet finish).
- TM_EACCES
- Trying to connect to a different FTP server with disconnecting from current server.
- TM_EINVAL
- Invalid FTP session pointer.
- TM_FTP_SERVREADY
- Service ready in n minutes (for exact time, use tfFtpGetReplyText() to retrieve full reply text).
- TM_FTP_SERVNAVAIL
- Service not available, closing FTP connection.
Table of Contents >> Application Reference >> FTP Client API