Gio.Socket.prototype.join_multicast_group
function join_multicast_group(group: Gio.InetAddress, source_specific: Boolean, iface: String): Boolean {
// Gjs wrapper for g_socket_join_multicast_group()
}
Registers socket to receive multicast messages sent to group. socket must be a Gio.SocketType.datagram socket, and must have been bound to an appropriate interface and port with Gio.Socket.prototype.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.IOErrorEnum.not_supported error.
Since 2.32
- group
a Gio.InetAddress specifying the group address to join.
- source_specific
true if source-specific multicast should be used
- iface
Name of the interface to use, or null
- Returns
true on success, false on error.