Command FTP_VerifyID

4D Internet Commands

FTP_VerifyID

version 6.5


FTP_VerifyID (ftp_ID) Integer

ParameterTypeDescription
ftp_IDLongintReference to a FTP login
0 = Connection has already closed

Function result Integer Error Code

Description

A FTP server will disconnect accounts which do not show activity in a period of time determined by its administrator. Each command that interacts with the FTP server will force a reset of your inactivity timer. The FTP_VerifyID command resets the inactivity time for the specified FTP session without altering the current state or directory. This allows the user to keep a session active if the possibility exists that the session may timeout.

When executed, the FTP_VerifyID command will verify that the connection has not already been closed. If the session is still open the command will tell the FTP server to reset the timeout counter for the session back to zero. If the connection has already closed, FTP_VerifyID will return the appropriate error, free memory used by the FTP session, and return a zero value back to ftp_ID.

ftp_ID is the long integer reference to the FTP session established with FTP_Login.

See Also

FTP_Login.