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

# blockMulticastGroupAwait

`suspend fun DatagramSocket.blockMulticastGroupAwait(multicastAddress: String, sourceToBlock: String): DatagramSocket`

Block the given address for the given multicast address and notifies the once the operation completes.

### Parameters

`multicastAddress` - the address for which you want to block the source address

`sourceToBlock` - the source address which should be blocked. You will not receive an multicast packets for it anymore.

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

`suspend fun DatagramSocket.blockMulticastGroupAwait(multicastAddress: String, networkInterface: String, sourceToBlock: String): DatagramSocket`

Block the given address for the given multicast address on the given network interface and notifies the once the operation completes.

### Parameters

`multicastAddress` - the address for which you want to block the source address

`networkInterface` - the network interface on which the blocking should occur.

`sourceToBlock` - the source address which should be blocked. You will not receive an multicast packets for it anymore.

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