Documentation ¶
Index ¶
Constants ¶
View Source
const ( DatagramSize = 516 // the maximum supported datagram size BlockSize = DatagramSize - 4 // the DatagramSize minus a 4-byte header )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Payload []byte // the payload served for all read requests Retries uint8 // the number of times to retry a failed transmission Timeout time.Duration // the duration to wait for an acknowledgment }
Server represents a read-only TFTP server that supports a subset of RFC 1350.
func (Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.