Expand description
Packets are a way to send data over the network.
Data gets serialized to a bytestream and then header and tail bytes are added to the front and end of the stream.
A TofPacket has the following layout HEAD : u16 = 0xAAAA TYPE : u8 = PacketType SIZE : u32 PAYLOAD : [u8;6-SIZE] TAIL : u16 = 0x5555
The total packet size is thus 13 + SIZE
Re-exports§
pub use packet_type::PacketType;
pub use crate::monitoring::RBMoniData;
pub use crate::monitoring::PBMoniData;
pub use crate::monitoring::LTBMoniData;
pub use crate::monitoring::PAMoniData;
pub use crate::monitoring::MtbMoniData;
pub use crate::monitoring::CPUMoniData;
Modules§
Structs§
- The most basic of all packets