udp_connector

Crates.ioudp_connector
lib.rsudp_connector
version0.1.0
sourcesrc
created_at2018-11-16 09:47:00.263542
updated_at2018-11-16 09:47:00.263542
descriptionAllows guaranteed data delivery over UDP sockets
homepage
repositoryhttps://github.com/trangar/udp_connector
max_upload_size
id96974
size34,694
Trangar (VictorKoenders)

documentation

README

Documentation

Provides a reasonable guarantee that messages being send over UDP arrive at the other connector.

This crate is a work in progress and should not be used in production yet.

This crate uses a struct called Connector that eventually guarantees that all persistent messages arrive at the other end, or it will disconnect.

This crate differentiates between two message types:

  • Confirmed: This is a message that is:
    • Guaranteed to arrive at some point
    • Not guaranteed to arrive in the correct order
  • Unconfirmed: This is a message that is not guaranteed to arrive

Use cases can be:

  • Sending player data does not always have to arrive, because the location is updated 10 times a second (unconfirmed)
  • Login information should always arrive, but this can take a second (confirmed)
Commit count: 33

cargo fmt