Udostępnij za pośrednictwem


DatagramPacket.Address Property

Definition

Returns the IP address of the machine to which this datagram is being sent or from which the datagram was received. -or- Sets the IP address of the machine to which this datagram is being sent.

public Java.Net.InetAddress? Address { [Android.Runtime.Register("getAddress", "()Ljava/net/InetAddress;", "")] get; [Android.Runtime.Register("setAddress", "(Ljava/net/InetAddress;)V", "")] set; }
[<get: Android.Runtime.Register("getAddress", "()Ljava/net/InetAddress;", "")>]
[<set: Android.Runtime.Register("setAddress", "(Ljava/net/InetAddress;)V", "")>]
member this.Address : Java.Net.InetAddress with get, set

Property Value

the IP address of the machine to which this datagram is being sent or from which the datagram was received.

Attributes

Remarks

Property getter documentation:

Returns the IP address of the machine to which this datagram is being sent or from which the datagram was received.

Java documentation for java.net.DatagramPacket.getAddress().

Property setter documentation:

Sets the IP address of the machine to which this datagram is being sent.

Added in 1.1.

Java documentation for java.net.DatagramPacket.setAddress(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