Socket.joinMulticastGroupSsm

Registers @socket to receive multicast messages sent to @group. @socket must be a %G_SOCKET_TYPE_DATAGRAM socket, and must have been bound to an appropriate interface and port with g_socket_bind().

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

If @source_specific is not %NULL, use source-specific multicast as defined in RFC 4604. Note that on older platforms this may fail with a %G_IO_ERROR_NOT_SUPPORTED error.

Note that this function can be called multiple times for the same @group with different @source_specific in order to receive multicast packets from more than one source.

class Socket
bool
joinMulticastGroupSsm

Parameters

group InetAddress

a #GInetAddress specifying the group address to join.

sourceSpecific InetAddress

a #GInetAddress specifying the source-specific multicast address or %NULL to ignore.

iface string

Name of the interface to use, or %NULL

Return Value

Type: bool

%TRUE on success, %FALSE on error.

Throws

GException on failure.

Meta

Since

2.56