Loading...
Searching...
No Matches
Ftp.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
468 Response download(const std::string& remoteFile, const std::string& localPath, TransferMode mode = Binary);
491 Response upload(const std::string& localFile, const std::string& remotePath, TransferMode mode = Binary, bool append = false);
Specialization of FTP response returning a directory.
Definition Ftp.hpp:189
DirectoryResponse(const Response &response)
Default constructor.
const std::string & getDirectory() const
Get the directory returned in the response.
Specialization of FTP response returning a filename listing.
Definition Ftp.hpp:222
const std::vector< std::string > & getListing() const
Return the array of directory/file names.
ListingResponse(const Response &response, const std::string &data)
Default constructor.
const std::string & getMessage() const
Get the full message contained in the response.
Response(Status code=InvalidResponse, const std::string &message="")
Default constructor.
@ ConnectionFailed
Not part of the FTP standard, generated by SFML when the low-level socket connection with the server ...
Definition Ftp.hpp:131
@ InvalidResponse
Not part of the FTP standard, generated by SFML when a received response cannot be parsed.
Definition Ftp.hpp:130
@ InsufficientStorageSpace
Requested action not taken; insufficient storage space in system, file unavailable.
Definition Ftp.hpp:113
@ SystemType
NAME system type, where NAME is an official system name from the list in the Assigned Numbers documen...
Definition Ftp.hpp:90
@ ClosingDataConnection
Closing data connection, requested file action successful.
Definition Ftp.hpp:94
@ ConnectionClosed
Not part of the FTP standard, generated by SFML when the low-level socket connection is unexpectedly ...
Definition Ftp.hpp:132
@ InvalidFile
Not part of the FTP standard, generated by SFML when a local file cannot be read or written.
Definition Ftp.hpp:133
@ DataConnectionAlreadyOpened
Data connection already opened, transfer starting.
Definition Ftp.hpp:80
Response upload(const std::string &localFile, const std::string &remotePath, TransferMode mode=Binary, bool append=false)
Upload a file to the server.
Response download(const std::string &remoteFile, const std::string &localPath, TransferMode mode=Binary)
Download a file from the server.
Response deleteDirectory(const std::string &name)
Remove an existing directory.
Response sendCommand(const std::string &command, const std::string ¶meter="")
Send a command to the FTP server.
DirectoryResponse getWorkingDirectory()
Get the current working directory.
Response changeDirectory(const std::string &directory)
Change the current working directory.
ListingResponse getDirectoryListing(const std::string &directory="")
Get the contents of the given directory.
Response renameFile(const std::string &file, const std::string &newName)
Rename an existing file.
Response login(const std::string &name, const std::string &password)
Log in using a username and a password.
Response connect(const IpAddress &server, unsigned short port=21, Time timeout=Time::Zero)
Connect to the specified FTP server.
Definition AlResource.hpp:35