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

Method Abort

deps/FtpClient/FTPClient.cpp:1449–1462  ·  view source on GitHub ↗

Executes the FTP command ABOR. This command tells the server to abort the previous FTP service command and any associated transfer of data. The abort command may require "special action", as discussed in the Section on FTP Commands, to force recognition by the server. No action is to be taken if the previous command has been completed (including data transfer). The control connection is not to be

Source from the content-addressed store, hash-verified

1447/// indicating that the abort command was successfully processed.
1448/// @return see return values of CFTPClient::SimpleErrorCheck
1449int CFTPClient::Abort() const
1450{
1451 if( m_fTransferInProgress )
1452 {
1453 m_fAbortTransfer = true;
1454 return FTP_OK;
1455 }
1456
1457 m_fAbortTransfer = false;
1458 CReply Reply;
1459 if( !SendCommand(CCommand::ABOR(), CArg(), Reply) )
1460 return FTP_ERROR;
1461 return SimpleErrorCheck(Reply);
1462}
1463
1464/// Executes the FTP command PWD (PRINT WORKING DIRECTORY)
1465/// This command causes the name of the current working directory

Callers

nothing calls this directly

Calls 1

CArgClass · 0.85

Tested by

no test coverage detected