For Developers: Bjoern Giesler's DSFTP 1.9 FTP Server and Software Component for DS |
Ó
DSFTP is a homebrew project by Bjoern Giesler. It started out as an FTP server for the Nintendo DS.Recently, DSFTP 1.8 came out and it was a stand-alone FTP server (like the DSFTP 1.6) that also had a software component called libDSFTP. Now Bjoern Giesler has released an update with DSFTP 1.9.
It is still a stand-alone program that you can use as an FTP server on your DS. And it is still a software component that makes the lives of developers easy. As Bjoern Giesler describes it: "[You] add an FTP server to your own program with a couple lines of code. With this, you can speed up the build process radically, because you can upload the new version of your program to your own running program, and reboot it immediately. This can even be automated via the command line. No swapping of flash cards ever again!"
Furthermore, we've learned that DSFTP has been tested on SuperCard, M3, and GBAMP. This is a good thing to have cleared up, because when we reported on it earlier, it seemed that it had only been tested on SuperCard. DSFTP also uses REIN's FAT library, so it should also work with MagicKey 2/3. However, booting is only supported on SuperCard as of now (we wonder if Bjoern Giesler has more in plan for future releases).
The download contains the following:
- the stand-alone DSFTP program in both .ds.gba and .nds formats
- the libDSFTP library and headers to integrate an FTP server into your own program
- full user and developer documentation
- full source code for the stand-alone DSFTP program, supplied as an example of how to use the library
Examples
Bjoern also gave some examples of how DSFTP works. To use DSFTP as a stand-alone server, a configuration file must be created at /data/settings/ftp.conf. Here is an example config file:
# Message of the day, displayed on connect
motd /ftp/motd.txt
# Where to store the log file
logfile /data/logs/ftp.log
# Log up to which level? (0-5)
loglevel 4
# Activate screensaver after 30 seconds
screensaver 30
# Wake screensaver up upon log message
wakeonlog false
# Define a new user: password, root/home, whether writing and booting is allowed
user bjoern
pass whatever
root /
home /
write true
boot true
end user
user anonymous
root /ftp/anonymous
write false
end user
Once the config file exists, DSFTP can be started. You can connect to your DS with FireFTP, Internet Explorer, command-line FTP. Using DSFTP in your own software is also just as simple (well, "simple" if you understand it).
void mainloop(void)
{
BFTPServer server;
// if you want to use a config file...
BFTPConfigurator configurator(&server);
configurator.configureFromFile("/data/settings/ftp.conf");
// or if you want to add users by hand...
server.addUser("myusername", "mypassword");
while(true)
{
// your own mainloop stuff
// ...
server.handle();
swiWaitForVBlank();
}
}
Download: [DSFTP 1.9 for NDS]
40 Jumps PSP Homebrew - PSPDisp v0.4
Contact Us:
The QJ.net Network |
|
| Site | Feed |
| QJ.NET | RSS |
| Nintendo DS | RSS |
| PlayStation 3 | RSS |
| PSP Updates | RSS |
| Wii | RSS |
| Xbox 360 | RSS |
| MMORPG | RSS |
| Personal Computer Games | RSS |
| iPhone - iPod Touch | RSS |
| QJ.NET Forums | RSS |
User Favorites - December
User Favorites - December
Categories
Archives
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006