Socket.leaveMulticastGroup

Removes socket from the multicast group defined by group, iface, and source_specific (which must all have the same values they had when you joined the group).

socket remains bound to its address and port, and can still receive unicast messages after calling this.

To unbind to a given source-specific multicast address, use Socket.leaveMulticastGroupSsm instead.

class Socket
bool
leaveMulticastGroup

Parameters

group InetAddress

a gio.InetAddress specifying the group address to leave.

sourceSpecific bool

TRUE if source-specific multicast was used

iface string

Interface used

Return Value

Type: bool

TRUE on success, FALSE on error.

Throws

GException on failure.

Meta

Since

2.32