Share via


MulticastSocket.Interface Property

Definition

Retrieve the address of the network interface used for multicast packets. -or- Set the multicast network interface used by methods whose behavior would be affected by the value of the network interface.

public virtual Java.Net.InetAddress? Interface { [Android.Runtime.Register("getInterface", "()Ljava/net/InetAddress;", "GetGetInterfaceHandler")] get; [Android.Runtime.Register("setInterface", "(Ljava/net/InetAddress;)V", "GetSetInterface_Ljava_net_InetAddress_Handler")] set; }
[<get: Android.Runtime.Register("getInterface", "()Ljava/net/InetAddress;", "GetGetInterfaceHandler")>]
[<set: Android.Runtime.Register("setInterface", "(Ljava/net/InetAddress;)V", "GetSetInterface_Ljava_net_InetAddress_Handler")>]
member this.Interface : Java.Net.InetAddress with get, set

Property Value

An InetAddress representing the address of the network interface used for multicast packets.

Attributes

Exceptions

if an error occurs.

Remarks

Property getter documentation:

Retrieve the address of the network interface used for multicast packets.

Java documentation for java.net.MulticastSocket.getInterface().

Property setter documentation:

Set the multicast network interface used by methods whose behavior would be affected by the value of the network interface. Useful for multihomed hosts.

Java documentation for java.net.MulticastSocket.setInterface(java.net.InetAddress).

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