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::
| 1799 | /// is to be restarted. |
| 1800 | /// @return see return values of CFTPClient::SimpleErrorCheck |
| 1801 | int 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. |
nothing calls this directly
no test coverage detected