-
Notifications
You must be signed in to change notification settings - Fork 618
Added DatagramSocket
for Native with Polling
#3582
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
base: topic/net2
Are you sure you want to change the base?
Conversation
|
||
import cats.effect.kernel.Resource | ||
|
||
class DatagramSocketSuite extends Fs2Suite { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move the existing UdpSuite
to the shared directory now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think we can move UdpSuite
to the shared directory, but the test cases are currently failing on macOS for native platform. I'll fix those issues, and then move it.
Add Datagram Socket Support with Polling
This PR adds support for datagram sockets with polling for native. The key changes include:
FdPollingDatagramSocket.scala
: Defines an interface for datagram sockets.FdPollingIpDatagramSocketsProvider.scala
: Creates and binds IP-based datagram sockets.IpMulticast.scala
: Provides types for low-level multicast support (ip_mreq
,ip_mreq_source
, etc.).SocketHelpers.scala
:join
,drop
,block
andunblock
helpers formulticast
.SocketOptions
for datagramSockets.setIpOption
andgetIpOption