Instance Methodswift-nio 2.81.0NIOCore
leaveGroup(_:)
MulticastChannel.swift:114func leaveGroup(_ group: SocketAddress) -> EventLoopFuture<Void>
func leaveGroup(_ group: SocketAddress) -> EventLoopFuture<Void>
s7NIOCore16MulticastChannelPAAE10leaveGroupyAA15EventLoopFutureCyytGAA13SocketAddressOF
What are these?K164
import NIOCore
The core abstractions that make up SwiftNIO.
protocol MulticastChannel : Channel
A MulticastChannel
is a Channel
that supports IP multicast operations: that is, a channel that can join multicast groups.
enum SocketAddress
Represent a socket address to which we may want to connect or bind.
final class EventLoopFuture<Value>
Holder for a result that will be provided later.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.
func joinGroup(_ group: SocketAddress) -> EventLoopFuture<Void>
func joinGroup(_ group: SocketAddress, device: NIONetworkDevice?) -> EventLoopFuture<Void>
func joinGroup(_ group: SocketAddress, device: NIONetworkDevice?, promise: EventLoopPromise<Void>?)
Request that the MulticastChannel
join the multicast group given by group
on the device given by device
.
func joinGroup(_ group: SocketAddress, promise: EventLoopPromise<Void>?)
func leaveGroup(_ group: SocketAddress, device: NIONetworkDevice?) -> EventLoopFuture<Void>
func leaveGroup(_ group: SocketAddress, device: NIONetworkDevice?, promise: EventLoopPromise<Void>?)
Request that the MulticastChannel
leave the multicast group given by group
on the device given by device
.
func leaveGroup(_ group: SocketAddress, promise: EventLoopPromise<Void>?)
func joinGroup(_ group: SocketAddress, interface: NIONetworkInterface?) -> EventLoopFuture<Void>
func leaveGroup(_ group: SocketAddress, interface: NIONetworkInterface?) -> EventLoopFuture<Void>