Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Specialization of FTP response returning a file name listing. More...
#include <SFML/Network/Ftp.hpp>
Public Member Functions | |
ListingResponse (const Response &response, const std::string &data) | |
Default constructor. | |
const std::vector< std::string > & | getListing () const |
Return the array of directory/file names. | |
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. |
Specialization of FTP response returning a file name listing.
|
stronginherited |
Status codes possibly returned by a FTP response.
sf::Ftp::ListingResponse::ListingResponse | ( | const Response & | response, |
const std::string & | data ) |
Default constructor.
response | Source response |
data | Data containing the raw listing |
|
nodiscard |
Return the array of directory/file names.
|
nodiscardinherited |
Get the full message contained in the response.
|
nodiscardinherited |
Get the status code of the response.
|
nodiscardinherited |
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.