Compartir a través de


DatagramSocketImpl.JoinGroup(SocketAddress, NetworkInterface) Method

Definition

Join the multicast group.

[Android.Runtime.Register("joinGroup", "(Ljava/net/SocketAddress;Ljava/net/NetworkInterface;)V", "GetJoinGroup_Ljava_net_SocketAddress_Ljava_net_NetworkInterface_Handler")]
protected abstract void JoinGroup (Java.Net.SocketAddress? mcastaddr, Java.Net.NetworkInterface? netIf);
[<Android.Runtime.Register("joinGroup", "(Ljava/net/SocketAddress;Ljava/net/NetworkInterface;)V", "GetJoinGroup_Ljava_net_SocketAddress_Ljava_net_NetworkInterface_Handler")>]
abstract member JoinGroup : Java.Net.SocketAddress * Java.Net.NetworkInterface -> unit

Parameters

mcastaddr
SocketAddress

address to join.

netIf
NetworkInterface

specifies the local interface to receive multicast datagram packets

Attributes

Exceptions

if an error occurs while joining the specified multicast group.

Remarks

Join the multicast group.

Added in 1.4.

Java documentation for java.net.DatagramSocketImpl.joinGroup(java.net.SocketAddress, java.net.NetworkInterface).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to