[ Version ( since = "2.32" ) ]
public bool join_multicast_group (InetAddress group, bool source_specific, string? iface) throws Error
Registers this to receive multicast messages sent to group
.
this must be a g_socket_type_datagram socket, and must have been bound to an appropriate interface and port with 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 g_io_error_not_supported error.
To bind to a given source-specific multicast address, use join_multicast_group_ssm instead.
this |
a Socket. |
group |
a 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 |
true on success, false on error. |