Required Instance Methodswift-nio 2.72.0NIOCore
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.
Other requirements
Instance members
func joinGroup(SocketAddress, device: NIONetworkDevice?, promise: EventLoopPromise<Void>?
) Request that the
MulticastChannel
join the multicast group given bygroup
on the device given bydevice
.func joinGroup(SocketAddress, promise: EventLoopPromise<Void>?
) Request that the
MulticastChannel
join the multicast group given bygroup
.func leaveGroup(SocketAddress, promise: EventLoopPromise<Void>?
) Request that the
MulticastChannel
leave the multicast group given bygroup
.
Show obsolete interfaces (2)
Hide obsolete interfaces
func joinGroup(SocketAddress, interface: NIONetworkInterface?, promise: EventLoopPromise<Void>?
) Request that the
MulticastChannel
join the multicast group given bygroup
on the interface given byinterface
.func leaveGroup(SocketAddress, interface: NIONetworkInterface?, promise: EventLoopPromise<Void>?
) Request that the
MulticastChannel
leave the multicast group given bygroup
on the interface given byinterface
.
Citizens in NIOCore
Default implementations
func leaveGroup(SocketAddress, device: NIONetworkDevice?, promise: EventLoopPromise<Void>?
) Request that the
MulticastChannel
leave the multicast group given bygroup
on the device given bydevice
.