Socket.joinMulticastGroup

bool joinMulticastGroup(gio.inet_address.InetAddress group, bool sourceSpecific, string iface = null)

Registers socket to receive multicast messages sent to group. socket must be a gio.types.SocketType.Datagram socket, and must have been bound to an appropriate interface and port with gio.socket.Socket.bind.

If iface is null, the system will automatically pick an interface to bind to based on group.

If source_specific is true, source-specific multicast as defined in RFC 4604 is used. Note that on older platforms this may fail with a gio.types.IOErrorEnum.NotSupported error.

To bind to a given source-specific multicast address, use gio.socket.Socket.joinMulticastGroupSsm instead.

Parameters

groupa #GInetAddress specifying the group address to join.
sourceSpecifictrue if source-specific multicast should be used
ifaceName of the interface to use, or null

Returns

true on success, false on error.

Throws