Required Instance Methodswift-nio 2.72.0NIOCore
joinGroup(_:interface:promise:)
Request that the MulticastChannel
join the multicast group given by group
on the interface given by interface
.
This declaration has been renamed to joinGroup(_:device:promise:).
This declaration is deprecated.
func joinGroup(_ group: SocketAddress, interface: NIONetworkInterface?, promise: EventLoopPromise<Void>?)
Parameters
- group
The IP address corresponding to the relevant multicast group.
- interface
The interface 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, 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, device: NIONetworkDevice?, promise: EventLoopPromise<Void>?
) Request that the
MulticastChannel
leave the multicast group given bygroup
on the device given bydevice
.func leaveGroup(SocketAddress, promise: EventLoopPromise<Void>?
) Request that the
MulticastChannel
leave the multicast group given bygroup
.
Show obsolete interfaces (1)
Hide obsolete interfaces
func leaveGroup(SocketAddress, interface: NIONetworkInterface?, promise: EventLoopPromise<Void>?
) Request that the
MulticastChannel
leave the multicast group given bygroup
on the interface given byinterface
.