Java.Net.MulticastSocket.JoinGroup Method
Adds this socket to the specified multicast group.

Syntax

[Android.Runtime.Register("joinGroup", "(Ljava/net/SocketAddress;Ljava/net/NetworkInterface;)V", "GetJoinGroup_Ljava_net_SocketAddress_Ljava_net_NetworkInterface_Handler")]
public virtual void JoinGroup (SocketAddress groupAddress, NetworkInterface netInterface)

Parameters

groupAddress
the multicast group to be joined.
netInterface
the network interface on which the datagram packets will be received.

Exceptions

TypeReason
Java.IO.IOExceptionif the specified address is not a multicast address.
Java.Lang.IllegalArgumentExceptionif no multicast group is specified.

Remarks

Adds this socket to the specified multicast group. A socket must join a group before data may be received. A socket may be a member of multiple groups but may join any group only once.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1