suspend fun DatagramSocket.listenMulticastGroupAwait(multicastAddress: String): DatagramSocket
Joins a multicast group and listens for packets send to it. The is notified once the operation completes.
multicastAddress
- the address of the multicast group to join
handler
- then handler to notify once the operation completes
Returna
reference to this, so the API can be used fluently *
suspend fun DatagramSocket.listenMulticastGroupAwait(multicastAddress: String, networkInterface: String, source: String): DatagramSocket
Joins a multicast group and listens for packets send to it on the given network interface. The is notified once the operation completes.
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
Returna
reference to this, so the API can be used fluently *