TFTP
(Trivial File Transfer Protocol)服务器的Rust
实现
- 支持
TFTP
协议的标准读请求 - 支持选项扩展(
blksize
、windowsize
、ts
) - 基于
tokio
异步运行时,高性能,高并发
# 通过cargo安装
$ cargo install --git https://github.com/lbhzy/tftp-rs
# 帮助信息
$ tftp -h
A high-performance asynchronous TFTP server
Usage: tftp.exe [OPTIONS]
Options:
-i, --ip <IP> Listen ip [default: 0.0.0.0]
-p, --port <PORT> Listen Port [default: 69]
-d, --directory <DIRECTORY> Work directory [default: .]
-t, --timeout <TIMEOUT> Timeout (ms) [default: 1000]
-r, --retry <RETRY> Max retries [default: 3]
-g, --gbn Enable GO-Back-N
-h, --help Print help
# 运行
$ tftp -g