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.
| 434 | /// @retval FTP_ERROR Something went wrong. An other response was expected. |
| 435 | /// @retval NOT_OK The command was not accepted. |
| 436 | int 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. |
nothing calls this directly
no test coverage detected