void joinMulticast(
InternetAddress group,
{NetworkInterface interface}
)

Join a multicast group.

If an error occur when trying to join the multicast group an exception is thrown.

Source

/**
 * Join a multicast group.
 *
 * If an error occur when trying to join the multicast group an
 * exception is thrown.
 */
void joinMulticast(InternetAddress group, {NetworkInterface interface});