【文件属性】:
文件名称:tftp:Golang的TFTP服务器和客户端库
文件大小:28KB
文件格式:ZIP
更新时间:2021-05-03 17:08:27
go golang tftp pxe Go
Golang的TFTP服务器和客户端库
实施:
-TFTP协议(修订版2)
-TFTP选项扩展
-TFTP块大小选项
部分实现(仅适用于tsize服务器端):
-TFTP超时间隔和传输大小选项
一组功能足以支持PXE引导。
import "github.com/pin/tftp"
该软件包对Golang io具有凝聚力。 特别是它实现了io.ReaderFrom和io.WriterTo接口。 这样就可以进行有效的数据传输,而不必进行不必要的内存复制和分配。
TFTP服务器
// readHandler is called when client starts file download from server
func readHandler ( filename string , rf io. ReaderFrom ) error {
file , err := o
【文件预览】:
tftp-master
----.travis.yml(72B)
----netascii()
--------netascii.go(1KB)
--------netascii_test.go(3KB)
----server.go(12KB)
----tftp_test.go(21KB)
----receiver.go(6KB)
----connection.go(2KB)
----tftp_anticipate_test.go(767B)
----sender_anticipate.go(4KB)
----single_port_test.go(778B)
----LICENSE(1KB)
----backoff.go(489B)
----client.go(3KB)
----.gitignore(266B)
----go.sum(2KB)
----README.md(5KB)
----CONTRIBUTORS(112B)
----packet.go(4KB)
----single_port.go(4KB)
----sender.go(6KB)
----go.mod(138B)