type

MulticastSocket

src class MulticastSocket : UdpSocket

MulticastSocket extends UdpSocket to provide multicast capabilities.

constructors

make

Make a new unbound multicast UDP socket.

fields

interface

Default network interface for outgoing datagrams on this socket

loopbackMode

True to enable outgoing packets to be received by the local socket.

timeToLive

Default time to live for packets send on this socket.

methods

joinGroup

Join a multicast group.

leaveGroup

Leave a multicast group.

Slot Details

interface

src IpInterface interface

Default network interface for outgoing datagrams on this socket

joinGroup

src This joinGroup(IpAddr addr, Int? port := null, IpInterface? interface := null)

Join a multicast group. If interface parameter is null, then interface field is used. Return this.

leaveGroup

src This leaveGroup(IpAddr addr, Int? port := null, IpInterface? interface := null)

Leave a multicast group. If interface parameter is null, then interface field is used. Return this.

loopbackMode

src Bool loopbackMode

True to enable outgoing packets to be received by the local socket.

make

src new make(SocketConfig config := SocketConfig.cur())

Make a new unbound multicast UDP socket.

timeToLive

src Int timeToLive

Default time to live for packets send on this socket. Value must be between 0 and 255. TTL of zero is only delivered locally.