Send and receive large file by UDP
Usage: lftp [-hV] [COMMAND]
Send and receive large file by udp.
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
Commands:
server Send and receive large file by udp.
lsend Send file to server.
lget Get file from server.
list Get file list in server.
Usage: lftp server [-hV] [-c=<clientCount>] [-d=<dir>] [-p=<port>]
[-s=<portPoolStart>]
Send and receive large file by udp.
-c, --client=<clientCount>
The number of clients at the same time.
-d, --dir=<dir> Server data folder.
-h, --help Show this help message and exit.
-p, --port=<port> Server listen port.
-s, --start=<portPoolStart>
Start port pool
-V, --version Print version information and exit.
Usage: lftp lsend [-hV] [-c=<controlPort>] [-p=<sendPort>] [-s=<server>]
[<files>...]
Send file to server.
[<files>...] File path
-c, --control=<controlPort>
Control port.
-h, --help Show this help message and exit.
-p, --port=<sendPort> Data port.
-s, --server=<server> Server location.
-V, --version Print version information and exit.
Usage: lftp lget [-hV] [-c=<controlPort>] [-d=<dir>] [-p=<dataPort>]
[-s=<server>] [<files>...]
Get file from server.
[<files>...] File path
-c, --control=<controlPort>
Control Port
-d, --dir=<dir> Your file will download to this folder.
-h, --help Show this help message and exit.
-p, --port=<dataPort> Data Port.
-s, --server=<server> Server location.
-V, --version Print version information and exit.
Usage: lftp list [-hV] [-s=<server>]
Get file list in server.
-h, --help Show this help message and exit.
-s, --server=<server> Server location.
-V, --version Print version information and exit.
# Run a server in port 3000
$ java -jar lftp.jar server -p 3000 -d ./serverData
# Send a file(./data/test.txt)
$ java -jar lftp.jar lsend -s 127.0.0.1:3000 ./data/test.txt
# Get a file(test.txt) to ./data
$ java -jar lftp.jar lget -s 127.0.0.1:3000 -d ./data test.txt
# List file in server
$ java -jar lftp.jar list -s 127.0.0.1:3000
-
添加超大文件测试
-
改进文件IO方法,提高写入速度,以更大粒度读取文件,增加IO缓存
-
改进进度条占用资源和显示
-
减少文件传输时资源消耗
-
修复不能支持2GB以上文件的BUG
-
增加发送缓冲区大小
-
修复一些小问题
- 基本功能实现