Compartir a través de


SocketImpl.InterfaceConsts.IpMulticastIf Field

Definition

Caution

This constant will be removed in the future version. Use Java.Net.SocketOption enum directly instead of this field.

Set which outgoing interface on which to send multicast packets.

[Android.Runtime.Register("IP_MULTICAST_IF")]
[System.Obsolete("This constant will be removed in the future version. Use Java.Net.SocketOption enum directly instead of this field.", true)]
public const Java.Net.SocketOption IpMulticastIf = 16;
[<Android.Runtime.Register("IP_MULTICAST_IF")>]
[<System.Obsolete("This constant will be removed in the future version. Use Java.Net.SocketOption enum directly instead of this field.", true)>]
val mutable IpMulticastIf : Java.Net.SocketOption

Field Value

Value = 16
Attributes

Remarks

Set which outgoing interface on which to send multicast packets. Useful on hosts with multiple network interfaces, where applications want to use other than the system default. Takes/returns an InetAddress.

Valid for Multicast: DatagramSocketImpl

Java documentation for java.net.SocketOptions.IP_MULTICAST_IF.

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