tfFtpPort
Table of Contents >> Application Reference >> FTP Client API
| #include <trsocket.h> |
| int tfFtpPort | ( |
| ttUserFtpHandle ftpUserHandle, | |
| ttIpPort ftpPortNo | |
| ); |
Function Description
This function sets the local port number that incoming data connections should use.
Parameters
- ftpUserHandle
- The FTP session handle.
- ftpPortNo
- The port number to use for incoming data connections.
Returns
- TM_ENOERROR
- Success.
- TM_WOULDBLOCK
- This FTP session is non-blocking and the call did not complete.
- TM_EACCES
- Previous command did not complete.
- TM_ENOTLOGIN
- The user is not currently logged in.
- TM_ENOTCONN
- The user is not currently connected to a FTP server.
- TM_EINVAL
- Invalid FTP session pointer.
Table of Contents >> Application Reference >> FTP Client API