Executes the FTP command QUIT. This command terminates a USER and if file transfer is not in progress, the server closes the control connection. If file transfer is in progress, the connection will remain open for result response and the server will then close it. If the user-process is transferring files for several USERs but does not wish to close and then reopen connections for each, then the R
| 1305 | /// the effective action of an abort (ABOR) and a logout. |
| 1306 | /// @return see return values of CFTPClient::SimpleErrorCheck |
| 1307 | int CFTPClient::Logout() |
| 1308 | { |
| 1309 | CReply Reply; |
| 1310 | if( !SendCommand(CCommand::QUIT(), CArg(), Reply) ) |
| 1311 | return FTP_ERROR; |
| 1312 | |
| 1313 | CloseControlChannel(); |
| 1314 | |
| 1315 | return SimpleErrorCheck(Reply); |
| 1316 | } |
| 1317 | |
| 1318 | /// Executes the FTP command PASV. Set the passive mode. |
| 1319 | /// This command requests the server-DTP (data transfer process) on a data to |