Backend — Networking & Protocol
Location: src-tauri/src/network/
This module owns the UDP socket and all communication between the base station and the rover. It is split into four files: service, listener, sender and dummy.
Overview
The socket is created once in service.rs, wrapped in an Arc, and shared between the listener and ...
service.rs — UDP Socket
UdpService is a thin wrapper that binds a UDP socket and holds it in an Arc<UdpSocket> so it can ...
listener.rs — Incoming Packet Handler
run_listener() is the main receive loop. It runs for the lifetime of the app as a spawned async t...
sender.rs — Outgoing Packet Sender
This file is work in progress send_envelope() is the single outgoing send function. It takes a Pb...
dummy.rs — Development Simulator
The simulator generates realistic fake rover data so the UI can be developed and tested without p...