🚀 nimble-ordered-datagram
nimble-ordered-datagram ensures that datagrams are received and processed in order, discarding duplicates and handling reordering efficiently.
This crate is ideal for real-time networked applications, where maintaining the correct order of datagrams is crucial for smooth gameplay or data flow.
✨ Features
- Datagram ID Management: Assign unique IDs to your datagrams for ordered transmission.
- Duplicate & Reordering Handling: Automatically discard duplicate or out-of-order datagrams.
🤔 How It Works
- Each datagram is assigned a
DatagramIdwhich is serialized and deserialized efficiently. - The
OrderedOutstruct keeps track of the nextDatagramIdto send. - The
OrderedInstruct ensures that incoming datagrams are verified to be in order and discards any duplicates or reordered packets.
📦 Installation
To include nimble-ordered-datagram in your project, add the following to your Cargo.toml:
[]
= "0.0.16"
License
This project is licensed under the MIT License - see the LICENSE file for details.