SFML community forums

General => Feature requests => Topic started by: 1aam2am1 on August 25, 2015, 12:22:24 am

Title: Ftp
Post by: 1aam2am1 on August 25, 2015, 12:22:24 am
Add a FTP server in SFML.
Title: Re: Ftp
Post by: Gambit on August 25, 2015, 12:28:31 am
Really? http://www.sfml-dev.org/tutorials/2.0/network-ftp.php
Title: Re: Ftp
Post by: 1aam2am1 on August 25, 2015, 12:33:36 am
@up
This is a FTP client.
I told about the server.
Title: Re: Ftp
Post by: Gambit on August 25, 2015, 01:21:59 am
Oops sorry about that. To be fair an FTP client itself is sort of out of the scope of multimedia anyway so a server would cross the line. By extension, an argument could be made for a HTTP server as well I suppose. Is there any reason you cant use this? https://filezilla-project.org/download.php?type=server
Title: Re: Ftp
Post by: Laurent on August 25, 2015, 07:51:09 am
Quote
Add a FTP server in SFML.
This is really a nice, useful and complete description of your request. Thanks.
Title: Re: Ftp
Post by: Rhimlock on August 25, 2015, 10:56:21 am
Quote
Add a FTP server in SFML.
This is really a nice, useful and complete description of your request. Thanks.

My sarcasm-detector is going crazy.
But I'm not sure everyone has on of these (though they are really usefull).
Title: Re: Ftp
Post by: Gambit on August 25, 2015, 12:27:06 pm
I agree with Laurent. Provide more details about your proposal such as how it will integrate with the current code (code snippets or something) and provide use cases. How would such a feature benefit SFML?
Title: Re: Ftp
Post by: Hapax on August 25, 2015, 02:48:46 pm
Maybe I'm missing the point but why, on an FTP server, would you need a multimedia library?
Title: Re: Ftp
Post by: Hiura on August 25, 2015, 03:01:23 pm
BTW, our philosophy for SFML: http://www.sfml-dev.org/contribute.php#philosophy
Title: Re: Ftp
Post by: 1aam2am1 on August 25, 2015, 04:18:11 pm
FTP server is need me to send files to my other programs such as updated maps, textures, sounds.
Creat game server who would have unusual map.

This class should have functions such as:
virtual bool onLoging(Client&);
virtual bool onConnect(Client&);
virtual void onDisconnect(Client&);

virtual bool onChangingDirectory(Client& std::string name_of_directory);
virtual bool onSendingFile(Client&, std::string name_of_file);
virtual void onOtherMessage(Client&, Message);

And menu others functions.
Title: Re: Ftp
Post by: Jesper Juhl on August 25, 2015, 04:24:42 pm
You don't need FTP for that.
SFML already provides TCP and UDP sockets and that's all you really need to transfer files.
IMHO; adding a FTP server to SFML would be a big mistake. It's entirely out of scope for a multimedia library and would likely have very few users, yet still clutter up the library for everyone.

Edit: if you insist on FTP, why can't you just use one of the many pre-existing FTP servers that already exist?