Instance Method (Default implementation)swift-nio 2.81.0NIOCore

leaveGroup(_:device:promise:)

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

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

Parameters

group

The IP address corresponding to the relevant multicast group.

device

The device on which to leave 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.