Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 882 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 882 Bytes

TFTP 服务器

简介

TFTP(Trivial File Transfer Protocol)服务器的Rust实现

功能特性

  • 支持 TFTP 协议的标准读请求
  • 支持选项扩展(blksizewindowsizets
  • 基于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