This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* QFT = Quick file transfer | |
* For transferring big files between devices in LAN at high speed | |
* Usage: node QFT.js address[:port] file [flags] | |
* Flags: | |
* "u": Use UTC time zone for date-time in output logs | |
* "d": Enable debug mode which will log minimal information about traffic into terminal | |
* Notes: | |
* Use DevTools debugger for Node.js to see more debug information (Remember to include "--inspect") | |
* Use environment variable "HIGH_WATERMARK" to change transfer speed in byte unit (Default: 50MB) |