Interface MulticastInterface

Interface summary


udp-open-multicast --port/int= --if-addr/IpAddress= --reuse-address/bool= --reuse-port/bool= --loopback/bool= --ttl/int= -> MulticastSocket
Opens a UDP socket configured for multicast.
udp-open-multicast address/IpAddress port/int --if-addr/IpAddress= --reuse-address/bool= --reuse-port/bool= --loopback/bool= --ttl/int= -> MulticastSocket

Methods

udp-open-multicast --port/int=null --if-addr/IpAddress=null --reuse-address/bool=true --reuse-port/bool=false --loopback/bool=true --ttl/int=1 -> MulticastSocket
Opens a UDP socket configured for multicast.
The returned socket is ready for multicast communication but does not automatically join any group. Use MulticastSocket.multicast-add-membership to join a group for receiving, or simply send to a multicast address for sending.
The port is the local port to bind to. If null, the OS picks an ephemeral port (typical for send-only sockets).
The if-addr is the IP address of the interface to use for outgoing multicast. If null, the OS picks a default interface.
If reuse-address is true (the default), the SO_REUSEADDR option is set.
If reuse-port is true (not default), the SO_REUSEPORT option is set (if supported by the platform).
If loopback is true (the default), multicast packets sent from this socket are also delivered to receivers on the same host.
The ttl is the multicast time-to-live (default 1, meaning link-local only).

udp-open-multicast address/IpAddress port/int --if-addr/IpAddress=null --reuse-address/bool=true --reuse-port/bool=false --loopback/bool=true --ttl/int=1 -> MulticastSocket
Opens a UDP multicast socket, binds to port, and automatically joins the multicast group address.