Loading...
Searching...
No Matches
sf::Ftp::Response Class Reference
Define a FTP response. More...
#include <SFML/Network/Ftp.hpp>
Inheritance diagram for sf::Ftp::Response:

Public Member Functions | |
Response (Status code=InvalidResponse, const std::string &message="") | |
Default constructor. | |
bool | isOk () const |
Check if the status code means a success. | |
Status | getStatus () const |
Get the status code of the response. | |
const std::string & | getMessage () const |
Get the full message contained in the response. |
Detailed Description
Member Enumeration Documentation
◆ Status
Status codes possibly returned by a FTP response.
Constructor & Destructor Documentation
◆ Response()
|
explicit |
Member Function Documentation
◆ getMessage()
const std::string & sf::Ftp::Response::getMessage | ( | ) | const |
Get the full message contained in the response.
- Returns
- The response message
◆ getStatus()
Status sf::Ftp::Response::getStatus | ( | ) | const |
Get the status code of the response.
- Returns
- Status code
◆ isOk()
bool sf::Ftp::Response::isOk | ( | ) | const |
Check if the status code means a success.
This function is defined for convenience, it is equivalent to testing if the status code is < 400.
- Returns
- True if the status is a success, false if it is a failure
The documentation for this class was generated from the following file: