Module tftp

Source
Expand description

TFTP library.

Netsvc uses TFTP for file transfers. TFTP is defined in RFC 1350. Netsvc also incorporates the following extensions:

Over the years netsvc also introduces some fuchsia-specific extensions, which are called out in documentation.

Structs§

AckBody
The body of an Ack message.
AckPacketBuilder
Implements [InnerPacketBuilder] for ack messages.
AllOptions
A container with all possible TftpOption values in a message.
DataBody
The body of a data message.
DataPacketBuilder
Implements [PacketBuilder] for a data request.
ErrorBody
The body of an error message.
ErrorPacketBuilder
Implements [InnerPacketBuilder] for error messages.
Forceable
Helper structure to encode forced values, a Fuchsia-specific extension to options.
OptionAckBody
The body of an option ack (OACK) message.
OptionAckPacketBuilder
Implements [InnerPacketBuilder] for option ack (OACK) messages.
OptionCollection
A collection of options in a TFTP message.
RequestBody
The body of a Read or Write request.
TransferRequestBuilder
Implements [InnerPacketBuilder] to build Read and Write requests.

Enums§

Opcode
TFTP Opcodes as defined in RFC 1350 section 5.
ParseError
Kinds of observable ParseErrors.
StringField
Fields that are parsed as strings.
TftpError
Error codes defined in RFC 1350 appendix I.
TftpMode
TFTP transfer modes defined in RFC 1350.
TftpOption
TFTP Options.
TftpPacket
A TFTP packet.
TransferDirection
The direction of a file transfer.

Constants§

DEFAULT_BLOCK_SIZE_OPTION
The default block size option value, according to RFC 1350.
DEFAULT_TIMEOUT_SECS_OPTION
The default timeout option value used in netsvc.
DEFAULT_WINDOW_SIZE_OPTION
The default window size option value, according to RFC 1350.
INCOMING_PORT
The port netsvc uses to listen to TFTP traffic.
MAX_OPTIONS
The maximum number of options that a request may carry.
OUTGOING_PORT
The port netsvc uses to send TFTP traffic from.