31 #include <SFML/System/NonCopyable.hpp>
32 #include <SFML/Network/SocketTCP.hpp>
78 RestartMarkerReply = 110,
79 ServiceReadySoon = 120,
80 DataConnectionAlreadyOpened = 125,
81 OpeningDataConnection = 150,
85 PointlessCommand = 202,
87 DirectoryStatus = 212,
92 ClosingConnection = 221,
93 DataConnectionOpened = 225,
94 ClosingDataConnection = 226,
95 EnteringPassiveMode = 227,
103 NeedAccountToLogIn = 332,
104 NeedInformation = 350,
108 ServiceUnavailable = 421,
109 DataConnectionUnavailable = 425,
110 TransferAborted = 426,
111 FileActionAborted = 450,
113 InsufficientStorageSpace = 452,
117 CommandUnknown = 500,
118 ParametersUnknown = 501,
119 CommandNotImplemented = 502,
120 BadCommandSequence = 503,
121 ParameterNotImplemented = 504,
123 NeedAccountToStore = 532,
124 FileUnavailable = 550,
125 PageTypeUnknown = 551,
126 NotEnoughMemory = 552,
127 FilenameNotAllowed = 553,
130 InvalidResponse = 1000,
131 ConnectionFailed = 1001,
132 ConnectionClosed = 1002,
143 Response(Status Code = InvalidResponse,
const std::string& Message =
"");
160 Status GetStatus()
const;
168 const std::string& GetMessage()
const;
176 std::string myMessage;
200 const std::string& GetDirectory()
const;
207 std::string myDirectory;
233 std::size_t GetCount()
const;
243 const std::string& GetFilename(std::size_t Index)
const;
250 std::vector<std::string> myFilenames;
270 Response Connect(
const IPAddress& Server,
unsigned short Port = 21,
float Timeout = 0.f);
289 Response Login(
const std::string& UserName,
const std::string& Password);
324 ListingResponse GetDirectoryListing(
const std::string& Directory =
"");
334 Response ChangeDirectory(
const std::string& Directory);
352 Response MakeDirectory(
const std::string& Name);
362 Response DeleteDirectory(
const std::string& Name);
373 Response RenameFile(
const std::string& File,
const std::string& NewName);
383 Response DeleteFile(
const std::string& Name);
395 Response Download(
const std::string& DistantFile,
const std::string& DestPath,
TransferMode Mode = Binary);
407 Response Upload(
const std::string& LocalFile,
const std::string& DestPath,
TransferMode Mode = Binary);
420 Response SendCommand(
const std::string& Command,
const std::string& Parameter =
"");
437 friend class DataChannel;
448 #endif // SFML_FTP_HPP