Compartir a través de


DatagramSocketImpl.LeaveGroup(SocketAddress, NetworkInterface) Method

Definition

Leave the multicast group.

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

Parameters

mcastaddr
SocketAddress

address to leave.

netIf
NetworkInterface

specified the local interface to leave the group at

Attributes

Exceptions

if an error occurs while leaving the group.

Remarks

Leave the multicast group.

Added in 1.4.

Java documentation for java.net.DatagramSocketImpl.leaveGroup(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