Expand description
TFTP library.
Netsvc uses TFTP for file transfers. TFTP is defined in RFC 1350. Netsvc also incorporates the following extensions:
- Option extension RFC 2347.
- Block size option RFC 2348.
- Timeout interval, and transfer size options RFC 2349.
- Windows size option RFC 7440.
Over the years netsvc also introduces some fuchsia-specific extensions, which are called out in documentation.
Structs§
- AckBody
- The body of an Ack message.
- AckPacket
Builder - Implements [
InnerPacketBuilder
] for ack messages. - AllOptions
- A container with all possible
TftpOption
values in a message. - Data
Body - The body of a data message.
- Data
Packet Builder - Implements [
PacketBuilder
] for a data request. - Error
Body - The body of an error message.
- Error
Packet Builder - Implements [
InnerPacketBuilder
] for error messages. - Forceable
- Helper structure to encode forced values, a Fuchsia-specific extension to options.
- Option
AckBody - The body of an option ack (OACK) message.
- Option
AckPacket Builder - Implements [
InnerPacketBuilder
] for option ack (OACK) messages. - Option
Collection - A collection of options in a TFTP message.
- Request
Body - The body of a Read or Write request.
- Transfer
Request Builder - Implements [
InnerPacketBuilder
] to build Read and Write requests.
Enums§
- Opcode
- TFTP Opcodes as defined in RFC 1350 section 5.
- Parse
Error - Kinds of observable
ParseError
s. - String
Field - Fields that are parsed as strings.
- Tftp
Error - Error codes defined in RFC 1350 appendix I.
- Tftp
Mode - TFTP transfer modes defined in RFC 1350.
- Tftp
Option - TFTP Options.
- Tftp
Packet - A TFTP packet.
- Transfer
Direction - 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.