ftpDisconnect (Function) |
Top Previous Next |
This function will disconnect from the FTP server. All references to the connection identification (ID) after this call is illegal. The connection is closed by quitting the session - thus making sure that the user is correctly logged out. Any file transfer in progress will be canceled.
For each ftpConnect(), there must be a corresponding call to ftpDisconnect(). This is also the case when the connection is closed from the FTP server side (see example below).
Note: Disconnection with no server communication capability will result in an unclosed session on the server.
Input: ID : INT The ID returned from ftpConnect.
Returns: INT
Declaration: FUNCTION ftpDisconnect : INT;
Example: INCLUDE rtcu.inc |