woah, jchat can host files?
its official, jchat can host files.
it works similarly to bittorrent, but uses a custom protocol
the file hosting is ran on a separate thread and port so you can still chat while sharing files.
currently there is no encryption for it, but it works like this:
- we take the file, generate the root hash, and start listening
- when a client asks for the file, we start reading it in 1mb chunks, hashing that chunk and sending that chunk
- the file gets reconstructed on the other end
i used google guava to manage hashing of the files
basically, thats all for the user side updates in this devlog
some code technical stuff:
- suppressed a lot of warnings, these were related to the typo warning and deprecation warning (suppressed on purpose)
- code comments
- begin working on a logger so the cli isn’t cluttered
thank you for reading this devlog
git changelog
Log in to leave a comment