Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robust router for UDP #10

Open
ShadowJonathan opened this issue Dec 7, 2021 · 0 comments
Open

Robust router for UDP #10

ShadowJonathan opened this issue Dec 7, 2021 · 0 comments
Labels
batteries Additional useful boilerplate functionality

Comments

@ShadowJonathan
Copy link
Owner

While #1 provides a general API that is agnostic across all transports, I think it would be helpful for applications to have a "hit the ground running" UDP router which could take the task on polling and multiplexing the transport layer in their own way, via STD UDPsockets.

Because of this, I'll probably want to make this a separate crate (because of #5).

I also want to mention https://github.com/shadowjonathan/exit-left here, which would allow a thread-based blocking polling mechanism which only allows one threading reading the socket at any time, routing the results to the right waiting thread.

I could possibly supply an async solution in the future as well.

The main motivation for this is to prevent mistakes in applications, as else they'd have to re-implement the same router for every application, which could introduce data loss or vulnerabilities/problems.

@ShadowJonathan ShadowJonathan added the batteries Additional useful boilerplate functionality label Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
batteries Additional useful boilerplate functionality
Projects
None yet
Development

No branches or pull requests

1 participant