Skip to main content

sender.rs — Outgoing Packet Sender

This file is work in progress

send_envelope() is the single outgoing send function. It takes a PbEnvelope, encodes it to bytes using prost, and sends it to the target address over UDP. A hex_dump() helper (currently commented out) can be re-enabled to log outgoing packet bytes for debugging.

Usage pattern in any command:

sender::send_envelope(&socket, "192.168.1.x:9000", envelope).await?;