mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
this is a fixup and replacement of #650. We need to get this in because NIO converges. Support for Interface to report if Multicast is supported. Channel can provide Error if Interface doesn't support Multicast. Motivation: Allows for checking if the interface you are setting up for Multicast even supports Multicast in the first place. In multiple projects we have done with Multicast it helps as we still run into some network managers that shutdown multicast support. Modifications: Interface exposes a new variable to determine if it supports Multicast. performGroupOperation0 will check if interface is not nil and supports multicast, otherwise will throw error that the interface doesn't support Multicast Result: This should hopefully better inform if the Multicast attempt is going to even work.