Connecting FTP server SFML sockets

Hello

For some reason, I need to be able to log-in to a FTP server. In this case I can't be using the FTP-protocol, I need to use sockets.

I'm using the SFML library. Does someone know how to connect and log-in to a FTP-server using SFML sockets?

Thanks for reading,
Niely
If I understand the question correctly you are looking for some help on implementing your own implementation of the FTP protocol using SFML's sockets? If so I would say a good starting place would be to take a browse through SFML's own implementation of the FTP protocol. It should give you a good outline as to what is needed.

https://github.com/LaurentGomila/SFML/blob/master/include/SFML/Network/Ftp.hpp
https://github.com/LaurentGomila/SFML/blob/master/src/SFML/Network/Ftp.cpp

Hopefully that can help steer you into the right direction. If you need more help just let us know what you are having trouble with and I am sure we can help give some pointers on good resources or provide some code examples. Thought remember the more information you provide on what you are having trouble with the more specific we can be.

EDIT: Another great resource would be looking at the FTP RFC which will greatly help you with determining what is needed. https://www.ietf.org/rfc/rfc959.txt
Last edited on
I already used the FTP protocol from SFML. :)
And I also don't really need my own implementation of it.

Only a way to connect and log-in to a FTP server using SFML Sockets. Only connecting and logging-in, nothing more.
Topic archived. No new replies allowed.