vertx / io.vertx.kotlin.core.datagram / io.vertx.core.datagram.DatagramSocket / unlistenMulticastGroupAwait

unlistenMulticastGroupAwait

suspend fun DatagramSocket.unlistenMulticastGroupAwait(multicastAddress: String): DatagramSocket

Leaves a multicast group and stops listening for packets send to it. The is notified once the operation completes.

Parameters

multicastAddress - the address of the multicast group to leave

handler - then handler to notify once the operation completes

Returna
reference to this, so the API can be used fluently *

suspend fun DatagramSocket.unlistenMulticastGroupAwait(multicastAddress: String, networkInterface: String, source: String): DatagramSocket

Leaves a multicast group and stops listening for packets send to it on the given network interface. The is notified once the operation completes.

Parameters

multicastAddress - the address of the multicast group to join

networkInterface - the network interface on which to listen for packets.

source - the address of the source for which we will listen for multicast packets

handler - the handler to notify once the operation completes

Returna
reference to this, so the API can be used fluently *