31 #include <SFML/Network/Export.h>
32 #include <SFML/Network/IpAddress.h>
33 #include <SFML/Network/Types.h>
57 sfFtpRestartMarkerReply = 110,
58 sfFtpServiceReadySoon = 120,
59 sfFtpDataConnectionAlreadyOpened = 125,
60 sfFtpOpeningDataConnection = 150,
64 sfFtpPointlessCommand = 202,
65 sfFtpSystemStatus = 211,
66 sfFtpDirectoryStatus = 212,
67 sfFtpFileStatus = 213,
68 sfFtpHelpMessage = 214,
69 sfFtpSystemType = 215,
70 sfFtpServiceReady = 220,
71 sfFtpClosingConnection = 221,
72 sfFtpDataConnectionOpened = 225,
73 sfFtpClosingDataConnection = 226,
74 sfFtpEnteringPassiveMode = 227,
76 sfFtpFileActionOk = 250,
77 sfFtpDirectoryOk = 257,
81 sfFtpNeedPassword = 331,
82 sfFtpNeedAccountToLogIn = 332,
83 sfFtpNeedInformation = 350,
87 sfFtpServiceUnavailable = 421,
88 sfFtpDataConnectionUnavailable = 425,
89 sfFtpTransferAborted = 426,
90 sfFtpFileActionAborted = 450,
91 sfFtpLocalError = 451,
92 sfFtpInsufficientStorageSpace = 452,
96 sfFtpCommandUnknown = 500,
97 sfFtpParametersUnknown = 501,
98 sfFtpCommandNotImplemented = 502,
99 sfFtpBadCommandSequence = 503,
100 sfFtpParameterNotImplemented = 504,
101 sfFtpNotLoggedIn = 530,
102 sfFtpNeedAccountToStore = 532,
103 sfFtpFileUnavailable = 550,
104 sfFtpPageTypeUnknown = 551,
105 sfFtpNotEnoughMemory = 552,
106 sfFtpFilenameNotAllowed = 553,
109 sfFtpInvalidResponse = 1000,
110 sfFtpConnectionFailed = 1001,
111 sfFtpConnectionClosed = 1002,
112 sfFtpInvalidFile = 1003
122 CSFML_NETWORK_API
void sfFtpListingResponse_destroy(sfFtpListingResponse* ftpListingResponse);
135 CSFML_NETWORK_API sfBool sfFtpListingResponse_isOk(
const sfFtpListingResponse* ftpListingResponse);
145 CSFML_NETWORK_API sfFtpStatus sfFtpListingResponse_getStatus(
const sfFtpListingResponse* ftpListingResponse);
155 CSFML_NETWORK_API
const char* sfFtpListingResponse_getMessage(
const sfFtpListingResponse* ftpListingResponse);
165 CSFML_NETWORK_API
size_t sfFtpListingResponse_getCount(
const sfFtpListingResponse* ftpListingResponse);
176 CSFML_NETWORK_API
const char* sfFtpListingResponse_getName(
const sfFtpListingResponse* ftpListingResponse,
size_t index);
184 CSFML_NETWORK_API
void sfFtpDirectoryResponse_destroy(sfFtpDirectoryResponse* ftpDirectoryResponse);
197 CSFML_NETWORK_API sfBool sfFtpDirectoryResponse_isOk(
const sfFtpDirectoryResponse* ftpDirectoryResponse);
207 CSFML_NETWORK_API sfFtpStatus sfFtpDirectoryResponse_getStatus(
const sfFtpDirectoryResponse* ftpDirectoryResponse);
217 CSFML_NETWORK_API
const char* sfFtpDirectoryResponse_getMessage(
const sfFtpDirectoryResponse* ftpDirectoryResponse);
227 CSFML_NETWORK_API
const char* sfFtpDirectoryResponse_getDirectory(
const sfFtpDirectoryResponse* ftpDirectoryResponse);
236 CSFML_NETWORK_API
void sfFtpResponse_destroy(sfFtpResponse* ftpResponse);
249 CSFML_NETWORK_API sfBool sfFtpResponse_isOk(
const sfFtpResponse* ftpResponse);
259 CSFML_NETWORK_API sfFtpStatus sfFtpResponse_getStatus(
const sfFtpResponse* ftpResponse);
269 CSFML_NETWORK_API
const char* sfFtpResponse_getMessage(
const sfFtpResponse* ftpResponse);
277 CSFML_NETWORK_API sfFtp* sfFtp_create(
void);
285 CSFML_NETWORK_API
void sfFtp_destroy(sfFtp* ftp);
307 CSFML_NETWORK_API sfFtpResponse* sfFtp_connect(sfFtp* ftp,
sfIpAddress server,
unsigned short port,
sfTime timeout);
320 CSFML_NETWORK_API sfFtpResponse* sfFtp_loginAnonymous(sfFtp* ftp);
335 CSFML_NETWORK_API sfFtpResponse* sfFtp_login(sfFtp* ftp,
const char* name,
const char* password);
345 CSFML_NETWORK_API sfFtpResponse* sfFtp_disconnect(sfFtp* ftp);
358 CSFML_NETWORK_API sfFtpResponse* sfFtp_keepAlive(sfFtp* ftp);
371 CSFML_NETWORK_API sfFtpDirectoryResponse* sfFtp_getWorkingDirectory(sfFtp* ftp);
387 CSFML_NETWORK_API sfFtpListingResponse* sfFtp_getDirectoryListing(sfFtp* ftp,
const char* directory);
400 CSFML_NETWORK_API sfFtpResponse* sfFtp_changeDirectory(sfFtp* ftp,
const char* directory);
410 CSFML_NETWORK_API sfFtpResponse* sfFtp_parentDirectory(sfFtp* ftp);
424 CSFML_NETWORK_API sfFtpResponse* sfFtp_createDirectory(sfFtp* ftp,
const char* name);
440 CSFML_NETWORK_API sfFtpResponse* sfFtp_deleteDirectory(sfFtp* ftp,
const char* name);
455 CSFML_NETWORK_API sfFtpResponse* sfFtp_renameFile(sfFtp* ftp,
const char* file,
const char* newName);
471 CSFML_NETWORK_API sfFtpResponse* sfFtp_deleteFile(sfFtp* ftp,
const char* name);
489 CSFML_NETWORK_API sfFtpResponse* sfFtp_download(sfFtp* ftp,
const char* remoteFile,
const char* localPath, sfFtpTransferMode mode);
508 CSFML_NETWORK_API sfFtpResponse* sfFtp_upload(sfFtp* ftp,
const char* localFile,
const char* remotePath, sfFtpTransferMode mode, sfBool append);
528 CSFML_NETWORK_API sfFtpResponse* sfFtp_sendCommand(sfFtp* ftp,
const char* command,
const char* parameter);