Skip to content

Conversation

@rahulrangers
Copy link
Contributor

This PR introduces a non-blocking, Selector-driven implementation of UDP sockets for the JVM.

Key Changes

New implementation

  • SelectingIpDatagramSocketsProvider
    Binds UDP sockets backed by a DatagramChannel integrated with cats.effect.Selector.

  • SelectingDatagramSocket
    Provides a DatagramSocket[F] implementation with mutex-guarded non-blocking I/O for read and write operations, supporting:

    • Asynchronous reads and writes via Selector
    • Standard socket options (getOption, setOption)
    • Multicast group membership (join, drop, block, unblock)

@mpilquist mpilquist merged commit 4c19ca6 into typelevel:main Sep 6, 2025
16 checks passed
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.

2 participants