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

Method Reinitialize

deps/FtpClient/FTPClient.cpp:1773–1791  ·  view source on GitHub ↗

Executes the FTP command (STRUCTURE MOUNT) This command allows the user to mount a different file system data structure without altering his login or accounting information. Transfer parameters are similarly unchanged. The argument is a pathname specifying a directory or other system dependent file group designator. @return see return values of CFTPClient::SimpleErrorCheck

Source from the content-addressed store, hash-verified

1771/// or other system dependent file group designator.
1772/// @return see return values of CFTPClient::SimpleErrorCheck
1773int CFTPClient::Reinitialize() const
1774{
1775 CReply Reply;
1776 if( !SendCommand(CCommand::REIN(), CArg(), Reply) )
1777 return FTP_ERROR;
1778
1779 if( Reply.Code().IsPositiveCompletionReply() )
1780 return FTP_OK;
1781 else if( Reply.Code().IsPositivePreliminaryReply() )
1782 {
1783 if( !GetResponse(Reply) || !Reply.Code().IsPositiveCompletionReply() )
1784 return FTP_ERROR;
1785 }
1786 else if( Reply.Code().IsNegativeReply() )
1787 return FTP_NOTOK;
1788
1789 ASSERT( Reply.Code().IsPositiveIntermediateReply() );
1790 return FTP_ERROR;
1791}
1792
1793/// Executes the FTP command REST (RESTART)
1794/// This command does not cause file transfer but skips over the file to the

Callers

nothing calls this directly

Calls 5

CArgClass · 0.85
IsNegativeReplyMethod · 0.80

Tested by

no test coverage detected