vertx / io.vertx.reactivex.core.datagram / DatagramSocket / listenMulticastGroup

listenMulticastGroup

open fun listenMulticastGroup(multicastAddress: String, handler: Handler<AsyncResult<DatagramSocket>>): DatagramSocket

Joins a multicast group and listens for packets send to it. The is notified once the operation completes.

Parameters

multicastAddress - the address of the multicast group to join

handler - then handler to notify once the operation completes

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

open fun listenMulticastGroup(multicastAddress: String, networkInterface: String, source: String, handler: Handler<AsyncResult<DatagramSocket>>): DatagramSocket

Joins a multicast group and listens 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 - then handler to notify once the operation completes

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