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

Support tokio's UdpSocket for DTLS connections in tokio-boring? #151

Open
shahn opened this issue Aug 15, 2023 · 0 comments
Open

Support tokio's UdpSocket for DTLS connections in tokio-boring? #151

shahn opened this issue Aug 15, 2023 · 0 comments

Comments

@shahn
Copy link
Contributor

shahn commented Aug 15, 2023

I am writing a wrapper for tokio's UdpSocket to enable use via tokio-boring. There are two use cases for DTLS connections, one with a one-to-one connection where each partner can use connect(), and one where a server allows multiple clients to connect and maintains a separate DTLS connection to each client via a single socket. This separation makes a straight-forward implementation of the AsyncRead/AsyncWrite traits for UdpSocket impossible, thus requiring the wrapper.

Would there be interest to add this to tokio-boring? If so, I can clean it up and document it for a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant