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

Fold UdpState into AsyncUdpSocket #1612

Merged
merged 3 commits into from
Jul 24, 2023
Merged

Fold UdpState into AsyncUdpSocket #1612

merged 3 commits into from
Jul 24, 2023

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented Jul 21, 2023

Allows knowledge of UdpState to be isolated entirely within AsyncUdpSocket implementations, simplifying quinn::Endpoint and the poll_send API, and exposing more control over UDP feature checks to implementers.

Fixes #1609.

quinn/src/runtime.rs Show resolved Hide resolved
quinn/src/runtime/async_std.rs Show resolved Hide resolved
quinn/src/runtime/async_std.rs Outdated Show resolved Hide resolved
@djc
Copy link
Collaborator

djc commented Jul 24, 2023

Ohh, nice!

quinn-udp/src/windows.rs Show resolved Hide resolved
quinn/src/runtime.rs Show resolved Hide resolved
Allows knowledge of UdpState to be isolated entirely within
AsyncUdpSocket implementations, simplifying quinn::Endpoint and the
poll_send API, and exposing more control over UDP feature checks to
implementers.
@Ralith Ralith force-pushed the hide-udp-state branch 4 times, most recently from a874f1c to bdb631a Compare July 24, 2023 23:08
Simplifies the quinn-udp API, and helps isolate internal complexity to
the platforms that need it.
@Ralith Ralith merged commit 4973c4a into main Jul 24, 2023
8 checks passed
@Ralith Ralith deleted the hide-udp-state branch July 24, 2023 23:35
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

Successfully merging this pull request may close these issues.

Expose more quinn-udp UdpState properties
2 participants