Socket.joinMulticastGroup

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.

class Socket
bool
joinMulticastGroup

Parameters

group gio.inet_address.InetAddress

a #GInetAddress specifying the group address to join.

sourceSpecific bool

true if source-specific multicast should be used

iface string

Name of the interface to use, or null

Return Value

Type: bool

true on success, false on error.