mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Motivation: A large number of very useful protocols are implemented using multicast with UDP. As a result, it would be helpful to add support for joining and leaving IP multicast groups using SwiftNIO. Modifications: - Defines a MulticastChannel protocol for channels that support joining and leaving multicast groups. - Adds an implementation of MulticastChannel to DatagramChannel. - Adds a interfaceIndex property to NIONetworkInterface. - Adds if_nametoindex to the Posix enum. - Adds a isMulticast computed property to SocketAddress - Adds a demo multicast chat application. - Add a number of multicast-related socket options to SocketOptionProvider. Result: NIO users will be able to write channels that handle multicast UDP.