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

Method SimpleErrorCheck

deps/FtpClient/FTPClient.cpp:436–446  ·  view source on GitHub ↗

Analyse the repy code of a FTP server-response. @param[in] Reply Reply of a FTP server. @retval FTP_OK All runs perfect. @retval FTP_ERROR Something went wrong. An other response was expected. @retval NOT_OK The command was not accepted.

Source from the content-addressed store, hash-verified

434/// @retval FTP_ERROR Something went wrong. An other response was expected.
435/// @retval NOT_OK The command was not accepted.
436int CFTPClient::SimpleErrorCheck(const CReply& Reply) const
437{
438 if( Reply.Code().IsNegativeReply() )
439 return FTP_NOTOK;
440 else if( Reply.Code().IsPositiveCompletionReply() )
441 return FTP_OK;
442
443 ASSERT( Reply.Code().IsPositiveReply() );
444
445 return FTP_ERROR;
446}
447
448/// Logs on to a FTP server.
449/// @param[in] logonInfo Structure with logon information.

Callers

nothing calls this directly

Calls 3

IsNegativeReplyMethod · 0.80
IsPositiveReplyMethod · 0.80

Tested by

no test coverage detected