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

Method Restart

deps/FtpClient/FTPClient.cpp:1801–1815  ·  view source on GitHub ↗

Executes the FTP command REST (RESTART) This command does not cause file transfer but skips over the file to the specified data checkpoint. This command shall be immediately followed by the appropriate FTP service command which shall cause file transfer to resume. @param[in] dwPosition Represents the server marker at which file transfer is to be restarted. @return see return values of CFTPClient::

Source from the content-addressed store, hash-verified

1799/// is to be restarted.
1800/// @return see return values of CFTPClient::SimpleErrorCheck
1801int CFTPClient::Restart(DWORD dwPosition) const
1802{
1803 CReply Reply;
1804 if( !SendCommand(CCommand::REST(), CArg(CMakeString() << dwPosition), Reply) )
1805 return FTP_ERROR;
1806
1807 if( Reply.Code().IsPositiveIntermediateReply() )
1808 return FTP_OK;
1809 else if( Reply.Code().IsNegativeReply() )
1810 return FTP_NOTOK;
1811
1812 ASSERT( Reply.Code().IsPositiveReply() );
1813
1814 return FTP_ERROR;
1815}
1816
1817/// Executes the FTP command SIZE
1818/// Return size of file.

Callers

nothing calls this directly

Calls 5

CArgClass · 0.85
CMakeStringClass · 0.85
IsNegativeReplyMethod · 0.80
IsPositiveReplyMethod · 0.80

Tested by

no test coverage detected