Skip to content

lbhzy/tftp-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

基于tokio的异步TFTP服务器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages