Required Instance Methodswift-nio 2.81.0NIOCore

joinGroup(_:device:promise:)

Request that the MulticastChannel join the multicast group given by group on the device given by device.

MulticastChannel.swift:49
func joinGroup(_ group: SocketAddress, device: NIONetworkDevice?, promise: EventLoopPromise<Void>?)

Parameters

group

The IP address corresponding to the relevant multicast group.

device

The device on which to join the given group, or nil to allow the kernel to choose.

promise

The EventLoopPromise that will be notified once the operation is complete, or nil if you are not interested in the result of the operation.