tfNgFtpConnect
Table of Contents >> IPv6 Programmer's Reference
#include <trsocket.h> |
int tfNgFtpConnect | ( |
ttUserFtpHandle ftpUserHandle, | |
struct sockaddr_storage * ipAddrPtr | |
); |
Function Description
This function replaces tfFtpConnect() and attempts to connect to a remote FTP server.
Parameters
- ftpUserHandle
- FTP session handle
- ipAddrPtr
- Pointer to a structure containing the address of the 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.