Condividi tramite


DatagramSocket.InetAddress Property

Definition

Returns the address to which this socket is connected.

public virtual Java.Net.InetAddress? InetAddress { [Android.Runtime.Register("getInetAddress", "()Ljava/net/InetAddress;", "GetGetInetAddressHandler")] get; }
[<get: Android.Runtime.Register("getInetAddress", "()Ljava/net/InetAddress;", "GetGetInetAddressHandler")>]
member this.InetAddress : Java.Net.InetAddress

Property Value

the address to which this socket is connected.

Attributes

Remarks

Returns the address to which this socket is connected. Returns null if the socket is not connected.

If the socket was connected prior to being #close closed, then this method will continue to return the connected address after the socket is closed.

Java documentation for java.net.DatagramSocket.getInetAddress().

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