다음을 통해 공유


StandardSocketOptions.IpMulticastIf Property

Definition

The network interface for Internet Protocol (IP) multicast datagrams.

[Android.Runtime.Register("IP_MULTICAST_IF", ApiSince=24)]
public static Java.Net.ISocketOption? IpMulticastIf { get; }
[<Android.Runtime.Register("IP_MULTICAST_IF", ApiSince=24)>]
static member IpMulticastIf : Java.Net.ISocketOption

Property Value

Attributes

Remarks

The network interface for Internet Protocol (IP) multicast datagrams.

The value of this socket option is a NetworkInterface that represents the outgoing interface for multicast datagrams sent by the datagram-oriented socket. For StandardProtocolFamily#INET6 IPv6 sockets then it is system dependent whether setting this option also sets the outgoing interface for multicast datagrams sent to IPv4 addresses.

The initial/default value of this socket option may be null to indicate that outgoing interface will be selected by the operating system, typically based on the network routing tables. An implementation allows this socket option to be set after the socket is bound. Whether the socket option can be queried or changed prior to binding the socket is system dependent.

Java documentation for java.net.StandardSocketOptions.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