SFML community forums

Help => Network => Topic started by: kaB00M on June 22, 2020, 07:20:16 pm

Title: FTP cant download or upload
Post by: kaB00M on June 22, 2020, 07:20:16 pm
Hello.

I'm using SFML Ftp.
Host is ftpupload.net
I can connect successfully.
I also CAN create folders and delete files or folders.
But I cant download or upload files.
I get a 1001 error respond message after trying to download or upload.
Any ideas?

Thank you.

Title: Re: FTP cant download or upload
Post by: eXpl0it3r on June 24, 2020, 09:00:11 am
1001 is an internal error code "Connection Failed" and if I check the implementation it seems to happen when it fails to make a connection (https://github.com/SFML/SFML/blob/master/src/SFML/Network/Ftp.cpp#L585).
Do you have the correct rights to upload/download stuff?

If you have SFML with debug symbols you could set a break point at the socket response and check what error the socket is returning.
Additionally, you could check the actual traffic on the wire with Wireshark or similar.
Title: Re: FTP cant download or upload
Post by: kaB00M on June 26, 2020, 08:46:08 pm
Thanks for the reply eXpl0it3r.

Figure it out: Apparently, my connection was too slow and unreliable. I was tethering from a mobile phone at the time of the test.

It works great on a 'normal' connection.