Skip to content

v0.0.4 lampraysIroh [feat. > FTP server screen]

Choose a tag to compare

@fosterbarnes fosterbarnes released this 28 Oct 00:23
· 62 commits to main since this release

ftp:
The main menu has a new FTP Server item. It runs the ftpd FTP server inside FTB with FTB's dark theme. The top screen shows the server address and a colored log you can scroll with the D-Pad. The bottom screen shows each connected client with its folder, transfer progress, speed, and a speed graph.

Y opens a menu with Settings (user, password, hostname, port, compression level, file times), Upload Log, and About. Settings can be applied for this run or saved to sdmc:/ftb/ftpd.cfg. SELECT on its own turns the backlight off and on, and wifi stays connected with the lid closed while the FTP screen is open. Pressing B returns to the main menu and closes every FTP connection.

license:
The FTP server comes from ftpd (Michael Theall, Dave Murphy, TuxSH), which is GPL v3, so FTB builds are now distributed under GPL v3. FTB's own code keeps its MIT notice, and LICENSE.txt and the README credit ftpd.

Under the hood: ftpd 3.2.2's protocol core is ported into source/ftpd with its ImGui drawing replaced by a small C interface for FTB's screens. The port also fixes upstream issues: a saved config ran two settings onto one line, SITE HOST and SITE MTIME replied with an error after succeeding, changing settings touched the server's sockets from the UI thread, each server thread leaked on exit, and a failed wifi connect request stalled wifi detection. Exiting FTB from the HOME Menu now stops the server before networking shuts down. New log colors come from genTheme.ps1. Checks: a clean build passed with no compiler warnings, and a host probe of the log store and text truncation passed. The FTP screen has not been tested on hardware yet.