1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! # parachuter
//!
//! Reliable, rate-limited file downlink over lossy unidirectional UDP links.
//!
//! `parachuter` is a generic Rust crate inspired by, and first used on, the
//! SuperBIT balloon telescope. It provides a versioned packet protocol, a
//! chunker / reassembler that survives partial deliveries, an embedded
//! SQLite ledger of sent files, and a length-prefixed JSON control plane
//! that can be driven by the `parachuter ctl` subcommand to retune chunk
//! size, link IPs, downlink speed and pause/resume the sender at runtime.
//!
//! The crate is organised into five subsystems:
//!
//! * [`proto`] — on-the-wire packet layout, framing, parsing, CRCs.
//! * [`chunker`] — split a file into a stream of [`proto::Packet`]s.
//! * [`reassembler`] — durably reassemble packets into a file using a packed
//! bitmap manifest.
//! * [`ledger`] — SQLite-backed table of files seen, sent, and acknowledged.
//! * [`control`] — Unix-domain-socket control plane shared by every mode of
//! the `parachuter` binary.
//! * [`reconcile`] — ground-side check of the sender's downlinked ledger
//! against the final directory, to catch files lost whole.
//!
//! See `docs/DESIGN.md` for the architecture overview.
pub use ;