MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / Logout

Method Logout

deps/FtpClient/FTPClient.cpp:1307–1316  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1305/// the effective action of an abort (ABOR) and a logout.
1306/// @return see return values of CFTPClient::SimpleErrorCheck
1307int 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

Callers 1

OnBytesReceivedMethod · 0.80

Calls 1

CArgClass · 0.85

Tested by

no test coverage detected