vertx / io.vertx.rxjava.core.datagram / DatagramSocket / blockMulticastGroup

blockMulticastGroup

open fun blockMulticastGroup(multicastAddress: String, sourceToBlock: String, handler: Handler<AsyncResult<DatagramSocket>>): 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.

handler - the handler to notify once the operation completes

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

open fun blockMulticastGroup(multicastAddress: String, networkInterface: String, sourceToBlock: String, handler: Handler<AsyncResult<DatagramSocket>>): 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.

handler - the handler to notify once the operation completes

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