Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Ftp  (Read 5776 times)

0 Members and 1 Guest are viewing this topic.

1aam2am1

  • Newbie
  • *
  • Posts: 13
    • View Profile
Ftp
« on: August 25, 2015, 12:22:24 am »
Add a FTP server in SFML.

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Ftp
« Reply #1 on: August 25, 2015, 12:28:31 am »

1aam2am1

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Ftp
« Reply #2 on: August 25, 2015, 12:33:36 am »
@up
This is a FTP client.
I told about the server.

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Ftp
« Reply #3 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Ftp
« Reply #4 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.
Laurent Gomila - SFML developer

Rhimlock

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: Ftp
« Reply #5 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).

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Ftp
« Reply #6 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?

Hapax

  • Hero Member
  • *****
  • Posts: 3346
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Ftp
« Reply #7 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?
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Ftp
« Reply #8 on: August 25, 2015, 03:01:23 pm »
SFML / OS X developer

1aam2am1

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Ftp
« Reply #9 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.

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Ftp
« Reply #10 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?
« Last Edit: August 25, 2015, 04:27:31 pm by Jesper Juhl »

 

anything