leaveGroup(_:device:promise:)
Request that the MulticastChannel
leave the multicast group given by group
on the device given by device
.
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, ornil
if you are not interested in the result of the operation.