7 releases

0.0.17-dev Oct 24, 2024
0.0.16 Oct 22, 2024
0.0.12-dev Sep 23, 2024

#1495 in Game dev

Download history 498/week @ 2024-10-16 330/week @ 2024-10-23 18/week @ 2024-10-30 12/week @ 2024-11-06 2/week @ 2024-11-13 6/week @ 2024-11-20 10/week @ 2024-11-27 17/week @ 2024-12-04 12/week @ 2024-12-11

452 downloads per month
Used in 5 crates (via nimble-layer)

MIT license

7KB
121 lines

🚀 nimble-ordered-datagram

Crates.io Documentation

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 DatagramId which is serialized and deserialized efficiently.
  • The OrderedOut struct keeps track of the next DatagramId to send.
  • The OrderedIn struct 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:

[dependencies]
nimble-ordered-datagram = "0.0.17-dev"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies

~22KB