NsdServiceInfo.HostAddresses Property

Definition

Get the host addresses. -or- Set the host addresses.

public System.Collections.Generic.IList<Java.Net.InetAddress> HostAddresses { [Android.Runtime.Register("getHostAddresses", "()Ljava/util/List;", "", ApiSince=34)] get; [Android.Runtime.Register("setHostAddresses", "(Ljava/util/List;)V", "", ApiSince=34)] set; }
[<get: Android.Runtime.Register("getHostAddresses", "()Ljava/util/List;", "", ApiSince=34)>]
[<set: Android.Runtime.Register("setHostAddresses", "(Ljava/util/List;)V", "", ApiSince=34)>]
member this.HostAddresses : System.Collections.Generic.IList<Java.Net.InetAddress> with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Get the host addresses.

All host addresses are valid for the resolved service. All addresses share the same port

Java documentation for android.net.nsd.NsdServiceInfo.getHostAddresses().

Property setter documentation:

Set the host addresses.

When registering hosts/services, there can only be one registration including address records for a given hostname.

For example, if a client registers a service with the hostname "MyHost" and the address records of 192.168.1.1 and 192.168.1.2, then other registrations for the hostname "MyHost" must not have any address record, otherwise there will be a conflict.

Java documentation for android.net.nsd.NsdServiceInfo.setHostAddresses(java.util.List<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