-
Notifications
You must be signed in to change notification settings - Fork 2
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
UDP sockets #7
Comments
I really like the thought of symmertry, or I can probably help with the code behind issue as well, I just have to work/communciate after work hours... |
@deg4uss3r I really like this passage from Elegant APIs in Rust:
If we avoid going with strings and rely on enums instead, the Instead I'm thinking that probably having a I hope this all makes sense. Would be really awesome to see a patch for this functionality! 🎉 |
@yoshuawuyts Thanks for the link, I definitely agree and absolutely make perfect sense! |
With QUIC becoming a thing, it's reasonable that soon services that traditionally operated over TCP will start operating over UDP. Think
HTTP/3
andgRPC
.I'm thinking it might be useful to expose UDP variants of the
.bind()
and.bind_or()
methods, so moving from one protocol to the other doesn't require switching CLI parsers.I was thinking probably the easiest way is to keep
.bind()
and.bind_or()
operate on TCP, but add the.udp_bind()
and.udp_bind_or()
methods for UDP connections.Unresolved questions
From
trait (if that's not too magicky?)..bind()
to.tcp_bind()
?The text was updated successfully, but these errors were encountered: