CSFML_NETWORK_API sfFtpResponse * sfFtp_renameFile(sfFtp *ftp, const char *file, const char *newName)
Rename an existing file.
CSFML_NETWORK_API sfFtpResponse * sfFtp_connect(sfFtp *ftp, sfIpAddress server, unsigned short port, sfTime timeout)
Connect to the specified FTP server.
CSFML_NETWORK_API sfFtpResponse * sfFtp_loginAnonymous(sfFtp *ftp)
Log in using an anonymous account.
Text mode using ASCII encoding.
Need account for storing files.
#define CSFML_NETWORK_API
CSFML_NETWORK_API sfBool sfFtpDirectoryResponse_isOk(const sfFtpDirectoryResponse *ftpDirectoryResponse)
Check if a FTP directory response status code means a success.
User logged in, proceed. Logged out if appropriate.
Data connection already opened, transfer starting.
CSFML_NETWORK_API sfFtpStatus sfFtpListingResponse_getStatus(const sfFtpListingResponse *ftpListingResponse)
Get the status code of a FTP listing response.
Data connection open, no transfer in progress.
CSFML_NETWORK_API sfBool sfFtpResponse_isOk(const sfFtpResponse *ftpResponse)
Check if a FTP response status code means a success.
NAME system type, where NAME is an official system name from the list in the Assigned Numbers documen...
sfFtpTransferMode
Enumeration of transfer modes.
CSFML_NETWORK_API sfFtpResponse * sfFtp_changeDirectory(sfFtp *ftp, const char *directory)
Change the current working directory.
CSFML_NETWORK_API void sfFtpDirectoryResponse_destroy(sfFtpDirectoryResponse *ftpDirectoryResponse)
Destroy a FTP directory response.
CSFML_NETWORK_API sfFtpStatus sfFtpDirectoryResponse_getStatus(const sfFtpDirectoryResponse *ftpDirectoryResponse)
Get the status code of a FTP directory response.
CSFML_NETWORK_API void sfFtpListingResponse_destroy(sfFtpListingResponse *ftpListingResponse)
Destroy a FTP listing response.
Connection with server closed.
CSFML_NETWORK_API sfFtpResponse * sfFtp_createDirectory(sfFtp *ftp, const char *name)
Create a new directory.
CSFML_NETWORK_API sfFtpResponse * sfFtp_download(sfFtp *ftp, const char *remoteFile, const char *localPath, sfFtpTransferMode mode)
Download a file from a FTP server.
User name ok, need password.
struct sfFtpResponse sfFtpResponse
CSFML_NETWORK_API size_t sfFtpListingResponse_getCount(const sfFtpListingResponse *ftpListingResponse)
Return the number of directory/file names contained in a FTP listing response.
Encapsulate an IPv4 network address.
Can't open data connection.
CSFML_NETWORK_API sfFtpStatus sfFtpResponse_getStatus(const sfFtpResponse *ftpResponse)
Get the status code of a FTP response.
Requested action aborted, page type unknown.
CSFML_NETWORK_API sfFtpResponse * sfFtp_keepAlive(sfFtp *ftp)
Send a null command to keep the connection alive.
CSFML_NETWORK_API const char * sfFtpListingResponse_getName(const sfFtpListingResponse *ftpListingResponse, size_t index)
Return a directory/file name contained in a FTP listing response.
Binary mode (file is transfered as a sequence of bytes)
Text mode using EBCDIC encoding.
CSFML_NETWORK_API sfBool sfFtpListingResponse_isOk(const sfFtpListingResponse *ftpListingResponse)
Check if a FTP listing response status code means a success.
Requested action aborted, local error in processing.
CSFML_NETWORK_API const char * sfFtpResponse_getMessage(const sfFtpResponse *ftpResponse)
Get the full message contained in a FTP response.
Requested action not taken, file name not allowed.
Connection closed, transfer aborted.
CSFML_NETWORK_API sfFtpResponse * sfFtp_login(sfFtp *ftp, const char *name, const char *password)
Log in using a username and a password.
Invalid file to upload / download.
struct sfFtpListingResponse sfFtpListingResponse
CSFML_NETWORK_API sfFtpDirectoryResponse * sfFtp_getWorkingDirectory(sfFtp *ftp)
Get the current working directory.
Service closing control connection.
Service ready in N minutes.
Requested action not taken; insufficient storage space in system, file unavailable.
Service ready for new user.
Requested file action pending further information.
struct sfFtpDirectoryResponse sfFtpDirectoryResponse
System status, or system help reply.
Requested action not taken, file unavailable.
Response is not a valid FTP one.
sfFtpStatus
Status codes possibly returned by a FTP response.
CSFML_NETWORK_API sfFtpListingResponse * sfFtp_getDirectoryListing(sfFtp *ftp, const char *directory)
Get the contents of the given directory.
CSFML_NETWORK_API const char * sfFtpDirectoryResponse_getDirectory(const sfFtpDirectoryResponse *ftpDirectoryResponse)
Get the directory returned in a FTP directory response.
Service not available, closing control connection.
Command not implemented for that parameter.
Syntax error, command unrecognized.
CSFML_NETWORK_API sfFtpResponse * sfFtp_sendCommand(sfFtp *ftp, const char *command, const char *parameter)
Send a command to the FTP server.
CSFML_NETWORK_API sfFtp * sfFtp_create(void)
Create a new Ftp object.
Bad sequence of commands.
Requested file action ok.
CSFML_NETWORK_API void sfFtpResponse_destroy(sfFtpResponse *ftpResponse)
Destroy a FTP response.
CSFML_NETWORK_API sfFtpResponse * sfFtp_deleteFile(sfFtp *ftp, const char *name)
Remove an existing file.
CSFML_NETWORK_API sfFtpResponse * sfFtp_parentDirectory(sfFtp *ftp)
Go to the parent directory of the current one.
Closing data connection, requested file action successful.
CSFML_NETWORK_API const char * sfFtpListingResponse_getMessage(const sfFtpListingResponse *ftpListingResponse)
Get the full message contained in a FTP listing response.
CSFML_NETWORK_API void sfFtp_destroy(sfFtp *ftp)
Destroy a Ftp object.
CSFML_NETWORK_API sfFtpResponse * sfFtp_deleteDirectory(sfFtp *ftp, const char *name)
Remove an existing directory.
Requested file action aborted, exceeded storage allocation.
CSFML_NETWORK_API sfFtpResponse * sfFtp_upload(sfFtp *ftp, const char *localFile, const char *remotePath, sfFtpTransferMode mode)
Upload a file to a FTP server.
CSFML_NETWORK_API const char * sfFtpDirectoryResponse_getMessage(const sfFtpDirectoryResponse *ftpDirectoryResponse)
Get the full message contained in a FTP directory response.
Connection with server failed.
Requested file action not taken.
CSFML_NETWORK_API sfFtpResponse * sfFtp_disconnect(sfFtp *ftp)
Close the connection with the server.
File status ok, about to open data connection.
Syntax error in parameters or arguments.