masneyb / gftp

gFTP is a free multithreaded file transfer client for *NIX based machines. 56 language translations available.
http://www.gftp.org
MIT License
116 stars 21 forks source link

Trivial File Transfer Protocol support? #135

Closed wdlkmpx closed 2 years ago

wdlkmpx commented 2 years ago

https://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol

Another protocol that uses UDP. It has 3 transfer modes: ASCII, Octet and Mail.

Of course only Octet (binary) transfer makes sense for gFTP, other modes shall not be implemented.

I think it's possible to add support for this protocol using a small lib or implementing it from scratch, it's possible.

wdlkmpx commented 2 years ago

Oops this protocol is too primitive and doesn't support directory listing. But a server may implement it in hacky way https://stackoverflow.com/questions/18225182/how-to-list-the-windows-tftp-server-directories-and-files-from-command-prompt

However i think it's possible to implement upload/download support, a protocol that is not visible in the GUI.

Just like the bookmark:// protocol that no one knows how to use, it's possible to add many hidden protocols to be used from the console/terminal window

run gftp 'bookmark://BSD Sites/FreeBSD' and see what happens.