'SFML network module's FTP download/upload failing
i have got the SFML network library working correctly and using the FTP like this:
#include <SFML/Network.hpp>
int main() {
sf::Ftp ftpc;
ftpc.connect("host");
ftpc.login("user", "pass");
ftpc.download("banned.txt", "/");
return 0;
}
it connects succesfully to a server i have got setup that is completely fine and works on filezilla, that has a file named banned.txt with stuff in it.
The problem is, this is never being downloaded.
using getStatus() on ftpc.download method returns Status Code: 1001 which means:
ConnectionFailed = 1001, //!< Not part of the FTP standard, generated by SFML when the low-level socket connection with the server fails
i have tried with other demo servers for testing, but still same error... with MinGW.
for some reason with MSVC it compiles fine, but SFML should work if i compiled everything from source with the current compiler (MinGW x64 devkit 11.2.0)
everything else in the module works, i can create directories, get the current directory etc.. besides uploading/downloading files.
i would not really like to switch to visual studio because for me its just a mess, i like visual studio code to just compile everything myself.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
