Documentation ¶
Index ¶
Constants ¶
View Source
const Mebibyte = 1048576
Variables ¶
View Source
var TimeoutError = errors.New("timeout while waiting for file")
Functions ¶
This section is empty.
Types ¶
type SafeBuffer ¶
func NewSafeBuffer ¶
func NewSafeBuffer(sizeLimit int) *SafeBuffer
type Server ¶
type Server struct { Server *tftp.Server ExternalIp net.IP // contains filtered or unexported fields }
func (*Server) ListenAndServe ¶
ListenAndServe is a wrapper around tftp.ListenAndServe
func (*Server) WaitForFile ¶
WaitForFile blocks until we receive a file with the given name via TFTP, or the time runs out
Click to show internal directories.
Click to hide internal directories.