Expand description
ZMODEM file transfer protocol crate. zmodem2::State::receive and zmodem2::State::send
provide a synchronous and sequential API for sending and receiving files
with the ZMODEM protocol. Each step corresponds to a single ZMODEM frame
transaction, and the state between the calls is kept in a zmodem2::State
instance.
The usage can be described in the high-level with the following flow:
- Create
zmodem2::State. - Call either
state.send(...)orstate.receive(...). - If the returned
zmodem2::Stageis not yetzmodem2::Stage::FileEnd, go back to step 2.
Structs§
- Buffer
- A buffer type for incoming and outgoing and other flyaway data.
- Capacity
Error - An error indicating a buffer’s capacity was exceeded.
- Header
- Data structure for holding a ZMODEM protocol header, which begins a frame, and is followed optionally by a variable number of subpackets.
- String
- A stack-allocated, fixed-capacity string.
- Transmission
- Send or receive transmission state
- Zrinit
ZRINITflags
Enums§
- Encoding
- The ZMODEM protocol frame encoding
- Error
- Top-level error type.
- Frame
- Frame types
- State
- Subpacket
Type - The ZMODEM protocol subpacket type