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

Feature/jo/state managed udp #176

Merged
merged 12 commits into from
Aug 10, 2023
Merged

Conversation

Joannis
Copy link
Contributor

@Joannis Joannis commented May 21, 2023

Adds support for UDP clients and servers.

Motivation:

This change was made because UDP support was lacking on iOS. It's needed by my DNS client implementation, which I am in turn using for an iOS app I'm working on relying on SRV typed records.

Modifications:

  • Adds a NIOTSDatagramListenerBootstrap for making UDP services
    • Adds a NIOTSDatagramListenerChannel that accepts UDP connections
  • Adds a NIOTSDatagramChannel for UDP client connections
  • Adds a NIOTSDatagramBootstrap that can create a new UDP client

Notes

This PR relies on #174 and #175, but it separated so that it's easy to review.
This has been tested against my own libraries, but only features one test.

While I believe it to be working, I'm looking for feedback on how I can better test this implementation.

@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Jul 8, 2023
@Joannis Joannis force-pushed the feature/jo/state-managed-udp branch from 13a6a6f to adfcaeb Compare July 10, 2023 10:04
@Joannis
Copy link
Contributor Author

Joannis commented Jul 10, 2023

@Lukasa updated

@Joannis
Copy link
Contributor Author

Joannis commented Jul 10, 2023

Note that there were 2 small issues in the state managed channels that I've had to fix as well

Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some initial comments.

@Joannis Joannis requested a review from Lukasa August 10, 2023 12:43
Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, thanks.

@Lukasa Lukasa merged commit e7403c3 into apple:main Aug 10, 2023
@Joannis Joannis deleted the feature/jo/state-managed-udp branch August 10, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants